# The hard RAK831 cafe part 2

**URL:** <https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576>\
**Category:** RAK Gateways\
**Created:** [November 13, 2017, 11:38am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576 "2017-11-13T11:38:28Z")\
**Posts on this page:** 20\
**Page:** 9

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [June 5, 2018, 6:24pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/164 "2018-06-05T18:24:39Z")

</div>

Considering you aren’t seeing any return traffic you need to check if there are any firewalls between the gateway and the TTN infrastructure.

---

<div class="post-metadata">

**Author:** ![Sandgroper](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sandgroper/32/46619_2.png) [@Sandgroper](https://www.thethingsnetwork.org/forum/u/Sandgroper)\
**Post date:** [June 5, 2018, 10:19pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/165 "2018-06-05T22:19:22Z")

</div>

Do you have a link to the airvent that you posted on the hard RAK831 cafe part 2?

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [June 6, 2018, 5:49am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/166 "2018-06-06T05:49:13Z")

</div>

sure 🕶

> **[Drukcompensatie element M12 Polyamide Lichtgrijs Wiska EVSP 12 1 stuks |...](https://www.conrad.nl/p/drukcompensatie-element-m12-polyamide-lichtgrijs-wiska-evsp-12-1-stuks-530149)**
>
> Minimalisatie van condensvorming door geïntegreerde microporeuze, vloeistofdichte en ademactieve ePTFE membraan. | Koop op Conrad.nl

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [June 6, 2018, 5:59am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/167 "2018-06-06T05:59:01Z")

</div>

@kersing congrats 🕶

![](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/4/4cbdb62324f6472382f0a6adb6a345f175fe9a46.jpg)

---

<div class="post-metadata">

**Author:** ![snorkman](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/snorkman/32/40934_2.png) [@snorkman](https://www.thethingsnetwork.org/forum/u/snorkman)\
**Post date:** [June 6, 2018, 11:38am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/168 "2018-06-06T11:38:33Z")

</div>

hi @kersin good afternoon,  
it is a simple network with a DSL router nothing else.  
I also checked that there is no firewall set that could interfere.  
Any other ideas? ☹

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [June 6, 2018, 4:32pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/169 "2018-06-06T16:32:34Z")

</div>

Some providers filter port 1700. Do you have some internet connected Linux server where you can run ‘nc’? Then you could modify the global\_conf to send data to that server and use nc to check if it arrives.

---

<div class="post-metadata">

**Author:** ![snorkman](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/snorkman/32/40934_2.png) [@snorkman](https://www.thethingsnetwork.org/forum/u/snorkman)\
**Post date:** [June 6, 2018, 7:38pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/170 "2018-06-06T19:38:27Z")

</div>

@kersing, hi  
As you suggested I modified the “global\_conf” of my RPi located at Point A to send all the UDP packets to other server located in another country (Point B).  
On the server side I created a small python script to listen to all the incoming data and as you can see in the screenshots I was successful.

![](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/7/75bbf888f211f993f02780c0544bf1a861b37676.jpg)

On the left is the RPi3 and on the right the server I created to receive all the data from the GW.

Now that I have done this test I can confirm that the UDP packages are leaving the GW correctly.

So, my question now is: should I try connecting to another router instead of “brazil.thething.network”?

Thanks!

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [June 6, 2018, 8:02pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/171 "2018-06-06T20:02:13Z")

</div>

Using your python program, can you extend it to return a packet to the gateway? (Use an empty UDP packet and tcpdump on the gateway to check if it arrives)

---

<div class="post-metadata">

**Author:** ![snorkman](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/snorkman/32/40934_2.png) [@snorkman](https://www.thethingsnetwork.org/forum/u/snorkman)\
**Post date:** [June 7, 2018, 6:27pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/175 "2018-06-07T18:27:33Z")

</div>

Hi @kersing,  
I added the confirmation on the server side and it works fine both ways.  
So I think that my network configuration is not an issue.

![](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/6/6c710232b54acdaaad183a1d473a73c105414c54.png)

I do not know how to proceed…should I try accesing TTN using another server?

I think that the servers are working fine. After trying that I set the server to  
“eu.thethings.network” and executed tcpdump again.  
 ![](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/3/3235fb79be2e593b4136b6e2389a545854c9bb53.png)

If you inspect the first line after the timestamp, what is printed matches with the one from the first picture and the one after that should be the reply from the GW.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [June 7, 2018, 7:09pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/176 "2018-06-07T19:09:59Z")

</div>

The only thing I can think of right now being the problem is TTN not accepting the packet for some reason. It could be the originating IP is blocked at TTN or the packets are malformed.  
You could try building and running mp\_pkt\_fwd, that uses TCP to connect to the back-end (if configured to use server\_type ‘ttn’)

---

<div class="post-metadata">

**Author:** ![snorkman](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/snorkman/32/40934_2.png) [@snorkman](https://www.thethingsnetwork.org/forum/u/snorkman)\
**Post date:** [June 7, 2018, 7:24pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/177 "2018-06-07T19:24:45Z")

</div>

Sure, give a few minutes I will have a look at the repo’s documentation on how to run it. And will write you back.\

Update:  
I cloned the “mp\_pkt\_fwd” repo to mi /home/pi directory and executed “build-pi.sh”. After that the executable “mp\_pkt\_fwd” appeared in “/opt/ttn-gateway”.  
I stopped ttn-gateway with “sudo service ttn-gateway stop” and executed the logs were

17:55:03 \*\*\* Multi Protocol Packet Forwarder for Lora Gateway \*\*\*  
Version: 3.0.20  
17:55:03 \*\*\* Lora concentrator HAL library version info \*\*\*  
Version: 5.0.1; Options: native;

* * *

17:55:03 INFO: Little endian host  
17:55:03 INFO: found local configuration file local\_conf.json, parsing it  
17:55:03 INFO: local\_conf.json does not contain a JSON object named SX1301\_conf  
17:55:03 INFO: local\_conf.json does contain a JSON object named gateway\_conf, parsing gateway parameters  
17:55:03 INFO: gateway MAC address is configured to B827EBFFFE3EF015  
17:55:03 INFO: Found 1 servers in array.  
17:55:03 INFO: Server 0 configured to “eu.thethings.network”  
17:55:03 INFO: packets received with a valid CRC will be forwarded  
17:55:03 INFO: packets received with a CRC error will NOT be forwarded  
17:55:03 INFO: packets received with no CRC will NOT be forwarded  
17:55:03 INFO: Reference latitude is configured to -27.364722 deg  
17:55:03 INFO: Reference longitude is configured to -55.893333 deg  
17:55:03 INFO: Reference altitude is configured to 0 meters  
17:55:03 INFO: GPS is disabled  
17:55:03 INFO: Upstream data is enabled  
17:55:03 INFO: Downstream data is enabled  
17:55:03 INFO: Ghoststream data is disabled  
17:55:03 INFO: Radiostream data is enabled  
17:55:03 INFO: Statusstream data is enabled  
17:55:03 INFO: Beacon is disabled  
17:55:03 INFO: Packet logger is disabled  
17:55:03 INFO: Flush output after statistic is disabled  
17:55:03 INFO: Flush after each line of output is disabled  
17:55:03 INFO: Watchdog is disabled  
17:55:03 INFO: Contact email configured to "@gmail.com"  
17:55:03 INFO: Description configured to “First TTN of Posadas”  
17:55:03 INFO: [Transports] Initializing protocol for 1 servers  
17:55:03 INFO: Successfully contacted server eu.thethings.network  
17:55:03 INFO: [main] Starting the concentrator  
17:55:06 ERROR: [main] failed to start the concentrator

---

<div class="post-metadata">

**Author:** ![snorkman](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/snorkman/32/40934_2.png) [@snorkman](https://www.thethingsnetwork.org/forum/u/snorkman)\
**Post date:** [June 8, 2018, 5:39am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/179 "2018-06-08T05:39:06Z")

</div>

Good morning,

I modified the server address from “eu.thethings.network” to -\> “router.eu.thethings.network” and now I get PULL\_ACK in these logs":

INFO: Successfully contacted server router.eu.thethings.network  
INFO: [main] Starting the concentrator  
INFO: [main] concentrator started, radio packets can now be received.  
INFO: [up] Thread activated for all servers.  
INFO: [down] Thread activated for all server router.eu.thethings.network  
INFO: [down] for server router.eu.thethings.network PULL\_ACK received in 294 ms  
INFO: [down] for server router.eu.thethings.network PULL\_ACK received in 294 ms  
INFO: [down] for server router.eu.thethings.network PULL\_ACK received in 294 ms

Does this mean that now I am receiving ACK from the server?

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [June 8, 2018, 6:40am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/180 "2018-06-08T06:40:37Z")

</div>

> [@snorkman](#):
>
> 17:55:06 ERROR: [main] failed to start the concentrator

Starting the packet forwarder without resetting the concentrator (which is usually done in a start script) will cause this message to appear. It might even appear a few times when you reset the concentrator. Just retry a couple of times.

> [@snorkman](#):
>
> I modified the server address from “eu.thethings.network” to -\> “router.eu.thethings.network” and now I get PULL\_ACK in these logs"

That looks healthy. The gateway should now be listed active in the TTN console.

---

<div class="post-metadata">

**Author:** ![snorkman](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/snorkman/32/40934_2.png) [@snorkman](https://www.thethingsnetwork.org/forum/u/snorkman)\
**Post date:** [June 8, 2018, 1:12pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/181 "2018-06-08T13:12:58Z")

</div>

Hello everyone! GOOD NEWS! 😃 😃 😃 😃 😃 😃 😃

so after I modified the server address I started receiving PULL\_ACK so I got closer to fix my issue.  
I deleted the GW from the console and created it again, but this time I made sure that all the data such as email, and EUI matched (lowercase and uppercase) and issued

sudo service ttn-gateway restart

and suddenly appeared in the console as CONNECTED.

![](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/1/119938eb90fc2b6b400d12f471a2f45d94067e54.png)

to verify that executed:  
netstat -u

pi@unam:~ $ netstat -u  
Active Internet connections (w/o servers)  
Proto Recv-Q Send-Q Local Address Foreign Address State  
udp 576 0 unam:40525 52.169.76.203:1700 ESTABLISHED  
udp 0 0 unam:37002 52.169.76.203:1700 ESTABLISHED

Special thanks to @Edzelf and @kersing for the support you provided!

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [June 8, 2018, 1:29pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/182 "2018-06-08T13:29:16Z")

</div>

coisa boa 😉

---

<div class="post-metadata">

**Author:** ![snorkman](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/snorkman/32/40934_2.png) [@snorkman](https://www.thethingsnetwork.org/forum/u/snorkman)\
**Post date:** [June 8, 2018, 1:45pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/183 "2018-06-08T13:45:01Z")

</div>

e! 😉

---

<div class="post-metadata">

**Author:** ![Charles](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/charles/32/45146_2.png) [@Charles](https://www.thethingsnetwork.org/forum/u/Charles)\
**Post date:** [June 8, 2018, 3:47pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/184 "2018-06-08T15:47:46Z")

</div>

Due to popular demands, I added some GPS and RTC features to RAK831 Pi Zero shield [https://github.com/hallard/RAK831-Zero](https://github.com/hallard/RAK831-Zero)

**List of V1.5a news:**

- Added connector to put a [Tiny GPS](http://www.electrodragon.com/product/gnss-module-atgm336h/) breakout board

- Added switch/jumpers to select PI Serial to be connected to FTDI connector or from GPS RX/TX

- Added footprint for RTC components or [Adafruit Breakout](https://www.adafruit.com/product/3295) than you can plug upside or downside depending how you plug the Pi Zero. This is usefull when used with local LoRaWAN server without Internet connexion.

- Added a LED on GPIO26 to light when GW is off so we can remove power safely (or whatever purpose)

- Connected GPS PPS signal on GPIO4 and added a LED on this signal

Checkout the [repo here](https://github.com/hallard/RAK831-Zero) you’ll be able to order new PCB (untested yet). I need to receive the boards to update doc with GPS config and RTC

Have fun and check tutorial of Andreas about this shield.

---

<div class="post-metadata">

**Author:** ![Sandgroper](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sandgroper/32/46619_2.png) [@Sandgroper](https://www.thethingsnetwork.org/forum/u/Sandgroper)\
**Post date:** [June 9, 2018, 5:33am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/185 "2018-06-09T05:33:50Z")

</div>

Awesome, I can’t wait to get my hands on them.

---

<div class="post-metadata">

**Author:** ![Charles](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/charles/32/45146_2.png) [@Charles](https://www.thethingsnetwork.org/forum/u/Charles)\
**Post date:** [June 9, 2018, 11:35am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/186 "2018-06-09T11:35:28Z")

</div>

Just updated to 1.5b for those who don’t want to solder SMD RTC, now you can plug (up or down) the cheap Adafruit RTC board, this mean it’s now as simple as plugging 2 breakouts, one for GPS and one for RTC. Of course if you have GPS one, you can sync time from GPS and avoid using a RTC.

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/8/8f985b0aecb6f23b2f6d683d44177a430ca3203b.jpg) ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/4/46145642373002e8301b2c3f21bf4306e4aa9e60.jpg)

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/48549_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [June 11, 2018, 11:17am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/187 "2018-06-11T11:17:55Z")

</div>

#### RAK announces new Heatsink for RAK831

![capture%202018-06-11%2013%C2%B711%C2%B755](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/7/707fbfc55f813e24c3d043d1c628f73d7b20e601.png)

The included link forwards to [here](https://www.aliexpress.com/store/product/RAK831-Pilot-Gateway-SX1301-Raspberry-Pi3-GPS-with-complete-enclosure-for-professional-demonstration-set-up/2805180_32883987457.html) but the heatsink is not (yet) listed.

[Previous page](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576.md?page=8)

[Next page](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576.md?page=10)
