{"id":6153,"date":"2024-07-01T14:52:11","date_gmt":"2024-07-01T14:52:11","guid":{"rendered":"https:\/\/lora.vsb.cz\/?page_id=6153"},"modified":"2025-08-14T09:33:53","modified_gmt":"2025-08-14T09:33:53","slug":"433-868-mhz-rak5146l-ic880a-lora-basics-station","status":"publish","type":"page","link":"https:\/\/lora.vsb.cz\/index.php\/433-868-mhz-rak5146l-ic880a-lora-basics-station\/","title":{"rendered":"433 &#038; 868 MHz &#8211; RAK5146L &#038; iC880a \u2013 LoRa Basics Station"},"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>Frequency:<\/strong><\/td>\n<td>Europe 433 MHz (ITU region 1)<br \/>\nEurope 863-870 MHz (SF9 for RX2 \u2013 recommended)<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>Classes:<\/strong><\/td>\n<td><strong><span style=\"color: #008000;\">Ready for LoRaWAN Classes A, B and C<\/span><\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>Using Docker:<\/strong><\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left; min-width: 100px;\" width=\"10%\"><strong>Last updated:<\/strong><\/td>\n<td>August 2, 2025<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This article provides instructions for making <strong>LoRa Basics Station <\/strong>for <strong>two frequency plans<\/strong> &#8211; <strong>Europe 433 MHz (ITU region 1)<\/strong> and <strong>Europe 863-870 MHz (SF9 for RX2 \u2013 recommended)<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7585 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/dual_gw_1-scaled.jpg\" alt=\"Dual GW\" width=\"700\" height=\"394\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/dual_gw_1-scaled.jpg 2560w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/dual_gw_1-300x169.jpg 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/dual_gw_1-1024x576.jpg 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/dual_gw_1-768x432.jpg 768w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/dual_gw_1-1536x864.jpg 1536w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/dual_gw_1-2048x1152.jpg 2048w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff6600;\">Note<\/span>: <strong>RAK5146L with GPS<\/strong> is required to support <strong>Class B<\/strong> end devices and <strong>GPS module with PPS<\/strong> (Pulse Per Second) for <strong>iC880a<\/strong> is required to support <strong>Class B <\/strong>end devices.<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #189bd6;\"><strong>Prepare<\/strong><\/span><\/h2>\n<ul>\n<li>Raspberry Pi 3 or 4<\/li>\n<li>Raspberry Pi Power Supply<\/li>\n<li>microSD card<\/li>\n<li><a href=\"https:\/\/store.rakwireless.com\/products\/mpcie-to-usb-board\" target=\"_blank\" rel=\"noopener\">mPCIe to USB Board<\/a><\/li>\n<li><a href=\"https:\/\/store.rakwireless.com\/products\/wislink-concentrator-module-sx1303-rak5146-lorawan?variant=42298600652998\" target=\"_blank\" rel=\"noopener\">RAK5146L Gateway Concentrator Module for LoRaWAN, SX1303 LoRa Core (EU433, USB)<\/a><\/li>\n<li><a href=\"https:\/\/wireless-solutions.de\/products\/lora-solutions-by-imst\/radio-modules\/ic880a-spi\/\" target=\"_blank\" rel=\"noopener\">iC880A-SPI LoRa Concentrator<\/a><\/li>\n<li><a href=\"https:\/\/dratek.cz\/arduino\/1510-gps-neo-6m-gyneo6mv2-modul-s-antenou.html\" target=\"_blank\" rel=\"noopener\">GPS NEO-6M GYNEO6MV2<\/a><\/li>\n<li>GPS antenna<\/li>\n<li>12x jumper wire<\/li>\n<li>2x SMA to uFL\/u.FL\/IPX\/IPEX RF Adapter Cable<\/li>\n<li><a href=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2024\/07\/dual_gw_holder.zip\">3D printed holder to mount boards with screws (optional)<\/a><\/li>\n<li>PC<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong><span style=\"color: #800000;\">Assembly<\/span><\/strong><\/h2>\n<ol>\n<li>First, from the <a href=\"https:\/\/lora.vsb.cz\/index.php\/868-mhz-ic880a-lora-basics-station#assembly\" target=\"_blank\" rel=\"noopener\"><strong>868 MHz iC880a \u2013 LoRa Basics Station<\/strong><\/a> tutorial,\u00a0do only the <strong>Assembly <\/strong>part\u00a0and <strong>return to this tutorial<\/strong>.<\/li>\n<li>Then, from the <a href=\"https:\/\/lora.vsb.cz\/index.php\/433-mhz-rak5146l-usb-lora-basics-station#assembly\" target=\"_blank\" rel=\"noopener\"><strong>433MHz RAK5146L USB \u2013 LoRa Basics Station<\/strong><\/a> tutorial,\u00a0do only the <strong>Assembly<\/strong> part\u00a0and <strong>return to this tutorial<\/strong>.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2><strong><span style=\"color: #800000;\">Raspberry Pi OS setup<\/span><\/strong><\/h2>\n<ol>\n<li>From\u00a0<strong><a href=\"https:\/\/www.raspberrypi.com\/software\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.raspberrypi.com\/software\/<\/a><\/strong>\u00a0download\u00a0<strong>Raspberry Pi Imager<\/strong>\u00a0and install it.<\/li>\n<li>Insert the microSD card into the computer.<\/li>\n<li>Run\u00a0<strong>Raspberry Pi Imager<\/strong>.<\/li>\n<li>Click on\u00a0<strong>CHOOSE OS<\/strong>.<\/li>\n<li>Click on\u00a0<strong>Raspberry Pi OS (other)<\/strong>.<\/li>\n<li>Click on\u00a0<strong>Raspberry Pi OS Lite (32-bit)<\/strong>.<\/li>\n<li>Click on\u00a0<strong>CHOOSE STORAGE<\/strong>.<\/li>\n<li>Select the inserted microSD card on which you want to install Raspberry Pi OS.<\/li>\n<li>Click on <strong>Next<\/strong>.<\/li>\n<li>Would you like to apply OS customisation settings? &#8211; <strong>EDIT SETTINGS<\/strong>.<\/li>\n<li><strong>Set hostname<\/strong>.<\/li>\n<li><strong>Set username and password<\/strong>. (<span style=\"color: #ff6600;\">we recommend a 17-digit password containing lower and upper case letters, numbers and symbols<\/span>)<\/li>\n<li>If you will use WiFi \u2013\u00a0<strong>Configure wireless LAN<\/strong>. (<span style=\"color: #ff6600;\">optional<\/span>)<\/li>\n<li><strong>Set locale settings<\/strong>.<\/li>\n<li>Click on tab <strong>SERVICES<\/strong>.<\/li>\n<li>If you will be connecting remotely via SSH \u2013<strong>\u00a0Enable SSH<\/strong>\u00a0\u2013\u00a0<strong>Use password authentication<\/strong>. (<span style=\"color: #ff6600;\">optional<\/span>)<\/li>\n<li>Click on\u00a0<strong>SAVE<\/strong>.<\/li>\n<li>Click on <strong>YES<\/strong>.<\/li>\n<li>Click on\u00a0<strong>YES<\/strong>.<\/li>\n<li>Click on\u00a0<strong>CONTINUE<\/strong>.<\/li>\n<li>Insert the microSD card into the Raspberry Pi.<\/li>\n<li>Turn on the Raspberry Pi.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h6><strong>Remote connection via SSH (optional)<\/strong><\/h6>\n<ol>\n<li>Connect to your router and find the IP address of your Raspberry Pi.<\/li>\n<li>From a Windows PC, you can connect using\u00a0<strong>Command Prompt<\/strong>\u00a0(CMD) or\u00a0<strong><a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" target=\"_blank\" rel=\"noopener\">PuTTY<\/a><\/strong>.<\/li>\n<li>On Windows PC open\u00a0<strong>Command Prompt<\/strong>\u00a0(CMD).<\/li>\n<li>Type\u00a0<code class=\" prettyprinted\"><strong><span class=\"pln\">ssh\u00a0<\/span><span class=\"pun\">-<\/span><span class=\"pln\">p\u00a0<\/span><em><span class=\"pln\">port\u00a0<\/span><\/em><em><span class=\"pln\">username<\/span><\/em><span class=\"pln\">@<\/span><em><span class=\"pln\">IP<\/span><\/em><\/strong><em><span class=\"pln\">_<\/span><\/em><strong><em><span class=\"pln\">Address<\/span><\/em><\/strong><\/code>\u00a0(for example: ssh -p 22 loravsb@192.168.1.120).<\/li>\n<li>Type your password.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h6><strong>Post-installation steps<\/strong><\/h6>\n<ol>\n<li>Update, upgrade and reboot Raspberry Pi. This will ensure that any security vulnerabilities are patched:\n<pre>$ sudo apt update\r\n$ sudo apt full-upgrade\r\n$ sudo reboot<\/pre>\n<\/li>\n<li>Connect again via SSH.<\/li>\n<li>Use a different port for SSH and disable root login.\u00a0First, open the SSH configuration file with a text editor:\n<pre>$ sudo nano \/etc\/ssh\/sshd_config\r\n<\/pre>\n<\/li>\n<li>Locate the line with <code>Port 22<\/code> and change it to the desired port number (for example, change the port to 2222). Locate the line with <code>PermitRootLogin<\/code> and change its value to <code>no<\/code> (this will disable root login via SSH):\n<pre><span class=\"hljs-keyword\">Port 2222\r\nPermitRootLogin no<\/span>\r\n\r\n<\/pre>\n<\/li>\n<li>Save the changes and exit the text editor.<\/li>\n<li>Restart the SSH service to apply the changes:\n<pre>$ sudo systemctl restart ssh\r\n<\/pre>\n<\/li>\n<li>Log out and connect again via SSH on the new port.<\/li>\n<li>Install and configure the built-in firewall, ufw, to limit incoming network connections. In the <code>sudo ufw limit 2222\/tcp<\/code> rule, change port 2222 to port you have chose for SSH above.\n<pre>$ sudo apt install ufw\r\n$ sudo ufw <span class=\"hljs-keyword\">default<\/span> deny incoming\r\n$ sudo ufw limit 2222\/tcp<span class=\"hljs-number\">\r\n$ sudo ufw enable<\/span>\r\n<\/pre>\n<p><span style=\"color: #ff6600;\">Note: Firewall rules will have no effect on ports opened by Docker.<\/span><\/li>\n<li>Reboot Raspberry Pi:\n<pre>$ sudo reboot<\/pre>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h6><strong>Docker<\/strong><\/h6>\n<ol>\n<li>Connect again via SSH.<\/li>\n<li>Install the latest Docker version using the convenience script provided by docker:\n<pre>$ curl -fsSL https:\/\/get.docker.com -o get-docker.sh\r\n$ sudo sh get-docker.sh\r\n$ sudo groupadd docker\r\n$ sudo usermod -aG docker $USER\r\n$ newgrp docker\r\n$ sudo systemctl enable docker.service\r\n$ sudo systemctl enable containerd.service<\/pre>\n<\/li>\n<\/ol>\n<p>For more information on Docker installation, see <strong><a href=\"https:\/\/docs.docker.com\/engine\/install\/\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.docker.com\/engine\/install\/<\/a><\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong><span style=\"color: #800000;\">LoRa Basics Station setup<\/span><\/strong><\/h2>\n<ol>\n<li>First, get the <strong>Gateway EUI<\/strong> for the <strong>433 MHz<\/strong>\u00a0LoRa Basics Station by running the following command:\n<pre>$ docker run -it --network host --rm -e GATEWAY_EUI_SOURCE=wlan0 xoseperez\/basicstation:latest gateway_eui<\/pre>\n<\/li>\n<li>Then get the <strong>Gateway EUI<\/strong> for <strong>868 MHz<\/strong>\u00a0LoRa Basics Station by running the following command:\n<pre>$ docker run -it --network host --rm -e GATEWAY_EUI_SOURCE=eth0 xoseperez\/basicstation:latest gateway_eui<\/pre>\n<\/li>\n<li>If you receive two identical EUIs, change the <strong>last digit of one<\/strong> to make them <strong>different<\/strong>.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong>The Things Stack<\/strong><\/h4>\n<ol>\n<li><a href=\"https:\/\/www.thethingsnetwork.org\/login?next=\/\" target=\"_blank\" rel=\"noopener\"><strong>Create an account<\/strong><\/a>\u00a0on The Things Network if you don\u2019t have one.<\/li>\n<li><strong>Login<\/strong>\u00a0on\u00a0<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\u00a0<strong>Console<\/strong>.<\/li>\n<li>Select a network cluster.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h6><strong>433 MHz LoRa Basics Station<\/strong><\/h6>\n<ol>\n<li><strong>Go to gateways<\/strong>.<\/li>\n<li>Click on button\u00a0<strong>+ Register gateway<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8823 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_2_3.png\" alt=\"\" width=\"705\" height=\"64\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_2_3.png 1233w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_2_3-300x27.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_2_3-1024x93.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_2_3-768x70.png 768w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/li>\n<li>Write the previously detected <strong>Gateway EUI <\/strong>for <strong>433\u00a0MHz <\/strong>LoRa Basics Station in the <strong>Gateway EUI field<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5544 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_3.png\" alt=\"RAK5146_KIT_LBS_3\" width=\"401\" height=\"244\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_3.png 693w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_3-300x183.png 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/li>\n<li>Click on button\u00a0<strong>Confirm<\/strong>.<\/li>\n<li>Write something into <strong>Gateway ID<\/strong>.<\/li>\n<li>Write something into <strong>Gateway name<\/strong>.<\/li>\n<li>Frequency plan \u2013 <strong>Europe 433 MHz (ITU region 1)<\/strong>.<\/li>\n<li>Click on button <strong>Register gateway<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5746 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146L_LBS_4.png\" alt=\"RAK5146L LBS 4\" width=\"400\" height=\"512\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146L_LBS_4.png 617w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146L_LBS_4-235x300.png 235w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li>In <strong>API keys<\/strong> click on button <strong>+Add API key<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8824 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_5_3.png\" alt=\"\" width=\"666\" height=\"246\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_5_3.png 1229w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_5_3-300x111.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_5_3-1024x378.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_5_3-768x284.png 768w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/li>\n<li>Write something into <strong>Name<\/strong>.<\/li>\n<li>Click on <strong>Grant individual rights<\/strong>.<\/li>\n<li>Select <strong>Link as Gateway to a Gateway Server for traffic exchange, i.e. write uplink and read downlink<\/strong>.<\/li>\n<li>Click on button <strong>Create API key<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5626\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_6-e1691494233842.png\" alt=\"RAK5146_KIT_LBS_6\" width=\"400\" height=\"546\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_6-e1691494233842.png 606w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_6-e1691494233842-220x300.png 220w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li>Click the <strong>Copy to clipboard<\/strong> button and <strong>paste the key<\/strong> into some text document for future use.<\/li>\n<li>Click on button <strong>I have copied the key<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5559 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_7.png\" alt=\"RAK5146_KIT_LBS_7\" width=\"400\" height=\"357\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_7.png 928w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_7-300x267.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_7-768x684.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h6><strong>868 MHz LoRa Basics Station<\/strong><\/h6>\n<ol>\n<li><strong>Go to gateways<\/strong>.<\/li>\n<li>Click on button\u00a0<strong>+ Register gateway<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8823 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_2_3.png\" alt=\"\" width=\"705\" height=\"64\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_2_3.png 1233w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_2_3-300x27.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_2_3-1024x93.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_2_3-768x70.png 768w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/li>\n<li>Write the previously detected <strong>Gateway EUI <\/strong>for <strong>868 MHz <\/strong>LoRa Basics Station in the <strong>Gateway EUI field<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5544 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_3.png\" alt=\"RAK5146_KIT_LBS_3\" width=\"401\" height=\"244\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_3.png 693w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_3-300x183.png 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/li>\n<li>Click on button\u00a0<strong>Confirm<\/strong>.<\/li>\n<li>Write something into <strong>Gateway ID<\/strong>.<\/li>\n<li>Write something into <strong>Gateway name<\/strong>.<\/li>\n<li>Frequency plan \u2013 <strong>Europe 863-870 MHz (SF9 for RX2 \u2013 recommended)<\/strong><\/li>\n<li>Click on button <strong>Register gateway<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5548 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_4.png\" alt=\"RAK5146_KIT_LBS_4\" width=\"400\" height=\"514\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_4.png 611w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_4-233x300.png 233w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li>In <strong>API keys<\/strong> click on button <strong>+Add API key<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8824 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_5_3.png\" alt=\"\" width=\"666\" height=\"246\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_5_3.png 1229w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_5_3-300x111.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_5_3-1024x378.png 1024w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2025\/07\/RAK5146_KIT_LBS_5_3-768x284.png 768w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/li>\n<li>Write something into <strong>Name<\/strong>.<\/li>\n<li>Click on <strong>Grant individual rights<\/strong>.<\/li>\n<li>Select <strong>Link as Gateway to a Gateway Server for traffic exchange, i.e. write uplink and read downlink<\/strong>.<\/li>\n<li>Click on button <strong>Create API key<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5626\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_6-e1691494233842.png\" alt=\"RAK5146_KIT_LBS_6\" width=\"400\" height=\"546\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_6-e1691494233842.png 606w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_6-e1691494233842-220x300.png 220w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li>Click the <strong>Copy to clipboard<\/strong> button and <strong>paste the key<\/strong> into some text document for future use.<\/li>\n<li>Click on button <strong>I have copied the key<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5559 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_7.png\" alt=\"RAK5146_KIT_LBS_7\" width=\"400\" height=\"357\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_7.png 928w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_7-300x267.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_7-768x684.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong>Raspberry Pi&#8217;s Interfaces<\/strong><\/h4>\n<ol>\n<li>Run the following command to configure the Raspberry Pi&#8217;s Interfaces:\n<pre>$ sudo raspi-config<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5569 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_8.png\" alt=\"RAK5146_KIT_LBS_8\" width=\"401\" height=\"201\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_8.png 947w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_8-300x150.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_8-768x384.png 768w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/li>\n<li>In <strong>3 Interface Options<\/strong> -&gt; <strong>I4 SPI<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5570 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_9.png\" alt=\"RAK5146_KIT_LBS_9\" width=\"400\" height=\"204\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_9.png 952w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_9-300x153.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_9-768x392.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li>Would you like the SPI interface to be enabled? -&gt; <strong>Yes<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5578 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_10.png\" alt=\"RAK5146_KIT_LBS_10\" width=\"400\" height=\"279\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_10.png 785w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_10-300x209.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_10-768x536.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li><strong>Ok<\/strong>.<\/li>\n<li>In <strong>3 Interface Options<\/strong> -&gt; <strong>I5 I2C<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5580 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_11.png\" alt=\"RAK5146_KIT_LBS_11\" width=\"400\" height=\"206\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_11.png 971w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_11-300x154.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_11-768x395.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li>Would you like the ARM I2C interface to be enabled? -&gt; <strong>Yes<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5583 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_12.png\" alt=\"RAK5146_KIT_LBS_12\" width=\"400\" height=\"285\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_12.png 784w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_12-300x214.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_12-768x548.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li><strong>Ok<\/strong>.<\/li>\n<li>In <strong>3 Interface Options<\/strong> -&gt; <strong>I6 Serial Port<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5586 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_13.png\" alt=\"RAK5146_KIT_LBS_13\" width=\"400\" height=\"209\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_13.png 988w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_13-300x157.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_13-768x402.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li>Would you like a login shell to be accessible over serial? -&gt; <strong>No<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5588 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_14.png\" alt=\"RAK5146_KIT_LBS_14\" width=\"400\" height=\"283\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_14.png 783w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_14-300x212.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_14-768x543.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li>Would you like the serial port hardware to be enabled? -&gt; <strong>Yes<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5589 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_15.png\" alt=\"RAK5146_KIT_LBS_15\" width=\"400\" height=\"284\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_15.png 794w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_15-300x213.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_15-768x546.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li><strong>Ok<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5590 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_16.png\" alt=\"RAK5146_KIT_LBS_16\" width=\"400\" height=\"285\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_16.png 785w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_16-300x214.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_16-768x547.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li><strong>Finish<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5591 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_17.png\" alt=\"RAK5146_KIT_LBS_17\" width=\"400\" height=\"210\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_17.png 981w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_17-300x157.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_17-768x403.png 768w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_17-720x380.png 720w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<li>Would you like to reboot now? -&gt; <strong>Yes<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5592 \" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_18.png\" alt=\"RAK5146_KIT_LBS_18\" width=\"400\" height=\"283\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_18.png 783w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_18-300x212.png 300w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2023\/08\/RAK5146_KIT_LBS_18-768x543.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong>LoRa Basics Station<\/strong><\/h4>\n<ol>\n<li>Connect again via SSH.<\/li>\n<li>Clone the repository with LoRa Basics Station and go to the created directory:\n<pre>$ git clone https:\/\/github.com\/RAKWireless\/basicstation.git\r\n$ cd basicstation<\/pre>\n<\/li>\n<li>Run this command to overwrite the<strong> station.v2.conf<\/strong> file with a new file containing the <strong>PPS <\/strong>settings:\n<pre>$ curl -L https:\/\/raw.githubusercontent.com\/OndrejKnebl\/gateway-patch\/main\/station.v2.conf &gt; runner\/station.v2.conf<\/pre>\n<\/li>\n<li>Run this commands to patch the<strong> Dockerfile.<\/strong> If you are not using a 64-bit ARMv8 computer (like Raspberry Pi 4), you can change line<code>+ARG ARCH=aarch64<\/code>\u00a0to <code>+ARG ARCH=armv7hf<\/code>(ARMv7)\u00a0or <code>+ARG ARCH=amd64<\/code> (AMD64):\n<pre>$ curl -L https:\/\/raw.githubusercontent.com\/OndrejKnebl\/gateway-patch\/main\/dockerfile.patch &gt; dockerfile.patch\r\n$ nano dockerfile.patch\r\n$ patch Dockerfile &lt; dockerfile.patch<\/pre>\n<\/li>\n<li>Build\u00a0the image by using the buildx extension of docker. If you are not using a 64-bit ARMv8 computer (like Raspberry Pi 4), you can change <code>aarch64<\/code> to <code>armv7hf<\/code>(ARMv7) or <code>amd64<\/code> (AMD64):<\/li>\n<li>\n<pre>$ REGISTRY=868_basicstation VARIANT=std docker buildx bake --load aarch64<\/pre>\n<\/li>\n<li>Return to the parent folder:\n<pre>$ cd ..<\/pre>\n<\/li>\n<li>Run this command to create and edit the <strong>docker-compose.yml<\/strong> file:\n<pre>$ sudo nano docker-compose.yml<\/pre>\n<\/li>\n<li>Copy and paste the configuration below into your <strong>docker-compose.yml<\/strong> file. Copy and paste the <strong>API keys<\/strong> you got previously saved to the <strong>TC_KEY<\/strong> variables. Copy and paste the <strong>EUIs<\/strong> you got previously generated to the <strong>GATEWAY_EUI<\/strong> variables. If you are not using a 64-bit ARMv8 computer (like Raspberry Pi 4), you can change <code class=\" prettyprinted\"><span class=\"pln\">aarch64<\/span><\/code> to <code class=\" prettyprinted\"><span class=\"pln\">armv7hf<\/span><\/code> (ARMv7) or <code class=\" prettyprinted\"><span class=\"pln\">amd64<\/span><\/code>\u00a0(AMD64).\n<pre>version: '2.0'\r\nservices:\r\n  basicstation:\r\n      image: xoseperez\/basicstation:latest\r\n      container_name: basicstation-433\r\n      restart: unless-stopped\r\n      privileged: true\r\n      network_mode: host\r\n      environment:\r\n        INTERFACE: \"USB\"\r\n        MODEL: \"SX1303\"\r\n        GATEWAY_EUI: \"0000000000000000\"             # Copy here your EUI for 433 MHz LoRa Basics Station\r\n        TC_KEY: \"NNSXS....\"                         # Copy here your API key from the TTS for 433 MHz LoRa Basics Station\r\n        USE_LIBGPIOD: 1\r\n  basicstation-868:\r\n      image: 868_basicstation:aarch64-latest        # If not using a 64-bit ARMv8 computer, change aarch64\r\n      container_name: basicstation-868\r\n      restart: unless-stopped\r\n      privileged: true\r\n      network_mode: host\r\n      environment:\r\n        INTERFACE: \"SPI\"\r\n        MODEL: \"IC880A\"\r\n        GATEWAY_EUI: \"0000000000000000\"             # Copy here your EUI for 868 MHz LoRa Basics Station\r\n        SPI_SPEED: 2000000                          # If using backplane = 2000000, if wired and not working properly = 1000000\r\n        GW_RESET_GPIO: 25                           # If using backplane = 25, otherwise define your GPIO reset\r\n        TC_KEY: \"NNSXS....\"                         # Copy here your API key from the TTS\r\n        USE_LIBGPIOD: 1<\/pre>\n<\/li>\n<li>Next, create a script that automatically on system startup (or power on) will recreate the containers (because there were errors when starting the original container for 433 MHz).<\/li>\n<li>Create the script <strong>reset-docker-compose.sh<\/strong>:\n<pre>$ sudo nano reset-docker-compose.sh<\/pre>\n<\/li>\n<li>Copy and paste the content below into your <strong>reset-docker-compose.sh<\/strong> file. In the path, replace <strong>yourUsername<\/strong> with your username:\n<pre>#!\/bin\/bash\r\ncd \/home\/<strong>yourUsername<\/strong>\/\r\nsleep 30\r\nsudo docker compose down\r\nsudo docker compose up -d --force-recreate<\/pre>\n<\/li>\n<li>Make the script executable:\n<pre>$ sudo chmod +x reset-docker-compose.sh<\/pre>\n<\/li>\n<li>Create a systemd service:\n<pre>$ sudo nano \/etc\/systemd\/system\/docker-reset.service<\/pre>\n<\/li>\n<li>Copy and paste the content below into your <strong>docker-reset.service\u00a0<\/strong>file. In the path, replace <strong>yourUsername<\/strong> with your username:\n<pre>[Unit]\r\nDescription=Reset Docker Compose on Startup\r\n\r\n[Service]\r\nType=oneshot\r\nExecStart=\/home\/<strong>yourUsername<\/strong>\/reset-docker-compose.sh\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<\/li>\n<li>Enable and start the service. The second command <strong>will take 30 seconds to execute<\/strong>:\n<pre>$ sudo systemctl enable docker-reset\r\n$ sudo systemctl start docker-reset<\/pre>\n<\/li>\n<li>Finaly, check that the gateway status is <strong>Connected<\/strong> in the <strong>TTS console<\/strong>.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>For more information on <strong>LoRa Basics\u2122 Station for Docker<\/strong>, see:<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/github.com\/RAKWireless\/basicstation\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/RAKWireless\/basicstation<\/a><\/strong><\/li>\n<li><a href=\"https:\/\/hub.docker.com\/r\/xoseperez\/basicstation\" target=\"_blank\" rel=\"noopener\"><strong>https:\/\/hub.docker.com\/r\/xoseperez\/basicstation<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/news.rakwireless.com\/basics-station-on-rak-wisgate-developer-gateways\/\" target=\"_blank\" rel=\"noopener\"><strong>https:\/\/news.rakwireless.com\/basics-station-on-rak-wisgate-developer-gateways\/<\/strong><\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>TTN version: TTNv3 Frequency: Europe 433 MHz (ITU region 1) Europe 863-870 MHz (SF9 for RX2 \u2013 recommended) Classes: Ready for LoRaWAN Classes A, B and C Using Docker: Yes Last updated: August 2, 2025 This article provides instructions for making LoRa Basics Station for two frequency plans &#8211; Europe 433 MHz (ITU region 1) [&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-6153","page","type-page","status-publish","hentry","post"],"_links":{"self":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/6153","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=6153"}],"version-history":[{"count":40,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/6153\/revisions"}],"predecessor-version":[{"id":8922,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/6153\/revisions\/8922"}],"wp:attachment":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/media?parent=6153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}