<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Connecting Lopy4 Nano LoraWAN gateway to chirpstack&#x2F;loraserver]]></title><description><![CDATA[<p dir="auto">I've fairly new to LoRa, and am currently working with a Lopy4 and the nanogateway example to setup a local chirpstack server.  The trouble is that I am having trouble seeing the gateway within chirpstack.</p>
<p dir="auto">Using the example code I have the <a href="http://config.py" target="_blank" rel="noopener noreferrer nofollow">config.py</a> file setup like this</p>
<pre><code>import machine
import ubinascii

WIFI_MAC = ubinascii.hexlify(machine.unique_id()).upper()
# Set  the Gateway ID to be the first 3 bytes of MAC address + 'FFFE' + last 3 bytes of MAC address
GATEWAY_ID = WIFI_MAC[:6] + &quot;FFFE&quot; + WIFI_MAC[6:12]

SERVER = '0.0.0.0'
PORT = 1700

#NTP = &quot;pool.ntp.org&quot;
#NTP_PERIOD_S = 3600

WIFI_SSID = 'chirpstack'
WIFI_PASS = 'chirpstack'

## for EU868
#LORA_FREQUENCY = 868100000
#LORA_GW_DR = &quot;SF7BW125&quot; # DR_5

#for US915
LORA_FREQUENCY = 903900000 #125kHz channel 8
LORA_GW_DR = &quot;SF10BW125&quot; # DR_0
LORA_NODE_DR = 0
</code></pre>
<p dir="auto">Here I am running a hotspot on my machine with ssid 'chirpstack' and password 'chirpstack'.  I've had to remove communication to the NTP server due to it being blocked on my network.</p>
<p dir="auto">After uploading the files to the lopy4 I get the following:</p>
<pre><code>[     7.234] Starting LoRaWAN nano gateway with id: b'------FFFE------'
[     8.511] WiFi connected to: chirpstack
[     8.520] Opening UDP socket to 0.0.0.0 (0.0.0.0) port 1700...
[     8.536] Setting up the LoRa radio at 903.9001 Mhz using SF10BW125
[     8.548] LoRaWAN nano gateway online
[     8.555] You may now press ENTER to enter the REPL
</code></pre>
<p dir="auto">I removed the id here, but I get an actual id when it runs.  I've also made sure a gateway is setup in chirpstack expecting this id.</p>
<p dir="auto">So it looks like everything is connecting just fine, however when I go to chirpstack and look at the gateway I see:</p>
<pre><code>Last seen

Never
</code></pre>
<p dir="auto">I should also note that I am using the docker version of chirpstack located here, <a href="https://github.com/brocaar/chirpstack-docker" target="_blank" rel="noopener noreferrer nofollow">https://github.com/brocaar/chirpstack-docker</a></p>
<p dir="auto">I've tried running it as is along with editting the config files to be more in line with the chirpstack examples like here, <a href="https://www.chirpstack.io/gateway-bridge/install/config/" target="_blank" rel="noopener noreferrer nofollow">https://www.chirpstack.io/gateway-bridge/install/config/</a></p>
<p dir="auto">Has anyone had luck getting the nanogateway to connect and what steps did it take?</p>
]]></description><link>https://forum.pycom.io/topic/5441/connecting-lopy4-nano-lorawan-gateway-to-chirpstack-loraserver</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 21:38:34 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/5441.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Nov 2019 21:01:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connecting Lopy4 Nano LoraWAN gateway to chirpstack&#x2F;loraserver on Mon, 25 Nov 2019 21:01:45 GMT]]></title><description><![CDATA[<p dir="auto">I've fairly new to LoRa, and am currently working with a Lopy4 and the nanogateway example to setup a local chirpstack server.  The trouble is that I am having trouble seeing the gateway within chirpstack.</p>
<p dir="auto">Using the example code I have the <a href="http://config.py" target="_blank" rel="noopener noreferrer nofollow">config.py</a> file setup like this</p>
<pre><code>import machine
import ubinascii

WIFI_MAC = ubinascii.hexlify(machine.unique_id()).upper()
# Set  the Gateway ID to be the first 3 bytes of MAC address + 'FFFE' + last 3 bytes of MAC address
GATEWAY_ID = WIFI_MAC[:6] + &quot;FFFE&quot; + WIFI_MAC[6:12]

SERVER = '0.0.0.0'
PORT = 1700

#NTP = &quot;pool.ntp.org&quot;
#NTP_PERIOD_S = 3600

WIFI_SSID = 'chirpstack'
WIFI_PASS = 'chirpstack'

## for EU868
#LORA_FREQUENCY = 868100000
#LORA_GW_DR = &quot;SF7BW125&quot; # DR_5

#for US915
LORA_FREQUENCY = 903900000 #125kHz channel 8
LORA_GW_DR = &quot;SF10BW125&quot; # DR_0
LORA_NODE_DR = 0
</code></pre>
<p dir="auto">Here I am running a hotspot on my machine with ssid 'chirpstack' and password 'chirpstack'.  I've had to remove communication to the NTP server due to it being blocked on my network.</p>
<p dir="auto">After uploading the files to the lopy4 I get the following:</p>
<pre><code>[     7.234] Starting LoRaWAN nano gateway with id: b'------FFFE------'
[     8.511] WiFi connected to: chirpstack
[     8.520] Opening UDP socket to 0.0.0.0 (0.0.0.0) port 1700...
[     8.536] Setting up the LoRa radio at 903.9001 Mhz using SF10BW125
[     8.548] LoRaWAN nano gateway online
[     8.555] You may now press ENTER to enter the REPL
</code></pre>
<p dir="auto">I removed the id here, but I get an actual id when it runs.  I've also made sure a gateway is setup in chirpstack expecting this id.</p>
<p dir="auto">So it looks like everything is connecting just fine, however when I go to chirpstack and look at the gateway I see:</p>
<pre><code>Last seen

Never
</code></pre>
<p dir="auto">I should also note that I am using the docker version of chirpstack located here, <a href="https://github.com/brocaar/chirpstack-docker" target="_blank" rel="noopener noreferrer nofollow">https://github.com/brocaar/chirpstack-docker</a></p>
<p dir="auto">I've tried running it as is along with editting the config files to be more in line with the chirpstack examples like here, <a href="https://www.chirpstack.io/gateway-bridge/install/config/" target="_blank" rel="noopener noreferrer nofollow">https://www.chirpstack.io/gateway-bridge/install/config/</a></p>
<p dir="auto">Has anyone had luck getting the nanogateway to connect and what steps did it take?</p>
]]></description><link>https://forum.pycom.io/post/30703</link><guid isPermaLink="true">https://forum.pycom.io/post/30703</guid><dc:creator><![CDATA[JaRay]]></dc:creator><pubDate>Mon, 25 Nov 2019 21:01:45 GMT</pubDate></item></channel></rss>