# 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:** 8

<div class="post-metadata">

**Author:** ![costo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/costo/32/35875_2.png) [@costo](https://www.thethingsnetwork.org/forum/u/costo)\
**Post date:** [May 9, 2018, 2:35pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/144 "2018-05-09T14:35:54Z")

</div>

Ah, I understand now about the GPS, you use an interfaceboard with a ublox module already soldered to it. Apparently the rx-tx are already connected to the Rasberry because you can read the NMEA messages. I used a mini interface board made by Charles [https://github.com/hallard/RAK831-Zero](https://github.com/hallard/RAK831-Zero). There is no GPS module footprint on it and also in the LoRaGW-setup repository [https://github.com/ch2i/LoraGW-Setup](https://github.com/ch2i/LoraGW-Setup) I did not see anything about a GPS or PPS signal. So I have to findout to which points I have to connect (Rx&)Tx of the Ublox module and about anything in the software for GPS/PPS .

---

<div class="post-metadata">

**Author:** ![arcao](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arcao/32/37480_2.png) [@arcao](https://www.thethingsnetwork.org/forum/u/arcao)\
**Post date:** [May 9, 2018, 2:55pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/145 "2018-05-09T14:55:57Z")

</div>

> [@costo](#):
>
> So I have to findout to which points I have to connect (Rx&)Tx of the Ublox module and about anything in the software for GPS/PPS .

[Here](http://docs.rakwireless.com/en/RAK831%20LoRa%20Gateway/Hardware%20Design/Raspberry%20Pi%20Switchboard%20SCH_20171218.PDF) is the [RAK831 converter board schema](http://docs.rakwireless.com/en/RAK831%20LoRa%20Gateway/Hardware%20Design/Raspberry%20Pi%20Switchboard%20SCH_20171218.PDF).

In my case it’s running on ttyS0, so I had to add GPS port to MP forwarder configuration:

```
{
    ...
    "gateway_conf": {
        ...
        "fake_gps": false,
        "gps": true,
        "gps_tty_path": "/dev/ttyS0"
    }
}

```

---

<div class="post-metadata">

**Author:** ![costo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/costo/32/35875_2.png) [@costo](https://www.thethingsnetwork.org/forum/u/costo)\
**Post date:** [May 9, 2018, 3:27pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/146 "2018-05-09T15:27:16Z")

</div>

Your posts are very helpfull .  
So … I connected a PPS signal to the dedicated UFL socket on the RAK831 board.  
Unfortunatly the timing offset/drift messages (up to 350uS) stays in my journalctl . I used a script to install the packet-forwarder so now I have to dig to find where I need to edit some files to enable the GPS.

edit  
As this is a hardware topic I will have to open a new topic about how to connect a GPS module to the ch2i interface board and how to adapt the install scripts.

---

<div class="post-metadata">

**Author:** ![stevebeale](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/stevebeale/32/38522_2.png) [@stevebeale](https://www.thethingsnetwork.org/forum/u/stevebeale)\
**Post date:** [May 15, 2018, 1:31pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/147 "2018-05-15T13:31:42Z")

</div>

i have just received tyhe new board the jumper as in photo  
 ![rak](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/2/2e63ee11c0474953e16f16320d902f76101f7e1c.JPG)

---

<div class="post-metadata">

**Author:** ![88bit](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/88bit/32/35697_2.png) [@88bit](https://www.thethingsnetwork.org/forum/u/88bit)\
**Post date:** [May 20, 2018, 11:28pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/148 "2018-05-20T23:28:43Z")

</div>

Hi I’m running the RAK 831 gateway and need to test in a place where I don’t have internet access. I was wondering if there is a way to see information of the arriving packets. I’m mainly interested in the RSSI and if the packet is accepted as a valid packet.  
My RAK 831 is currently setup to connect to the TTN network but I don’t have an internet connection in the place where I go. Its a tunnel.

Thank you in advance for your reply.

---

<div class="post-metadata">

**Author:** ![aizukanne](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/aizukanne/32/35697_2.png) [@aizukanne](https://www.thethingsnetwork.org/forum/u/aizukanne)\
**Post date:** [May 31, 2018, 1:05am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/149 "2018-05-31T01:05:49Z")

</div>

This might be digressing a bit but has anyone been able to setup a LoRaWAN gateway with the RAK833?

I am interested in knowing the controller board & OS used. I have RAK833 with EVB board but cannot figure out how to get Lora packet forwarder running on the OpenWRT

---

<div class="post-metadata">

**Author:** ![Edzelf](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/edzelf/32/46364_2.png) [@Edzelf](https://www.thethingsnetwork.org/forum/u/Edzelf)\
**Post date:** [May 31, 2018, 3:51pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/150 "2018-05-31T15:51:42Z")

</div>

@88bit:  
I guess you may edit /opt/ttn-gateway/bin/local\_conf.json and change and change the line:  
`"servers": [ { "server_address": "router.eu.thethings.network",`  
to  
`"servers": [ { "server_address": "localhost",`

Restart the gateway with:  
`sudo service ttn-gateway restart`

The gateway wil now send messages to itself, and they will probably discarded.

Then look at the UDP messages by:  
`sudo tcpdump -XUq port 1700`  
Don’t forget to undo your changes in /opt/ttn-gateway/bin/local\_conf.json.

---

<div class="post-metadata">

**Author:** ![kenyu](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kenyu/32/20484_2.png) [@kenyu](https://www.thethingsnetwork.org/forum/u/kenyu)\
**Post date:** [June 4, 2018, 3:23pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/151 "2018-06-04T15:23:07Z")

</div>

we are working in this tutorial now. hopefully update you soon later and together will RAK833 formal launch

---

<div class="post-metadata">

**Author:** ![kenyu](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kenyu/32/20484_2.png) [@kenyu](https://www.thethingsnetwork.org/forum/u/kenyu)\
**Post date:** [June 4, 2018, 3:36pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/152 "2018-06-04T15:36:08Z")

</div>

you like smaller GPS antenna?

---

<div class="post-metadata">

**Author:** ![kenyu](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kenyu/32/20484_2.png) [@kenyu](https://www.thethingsnetwork.org/forum/u/kenyu)\
**Post date:** [June 4, 2018, 3:38pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/153 "2018-06-04T15:38:07Z")

</div>

where to get this heatsink? maybe we can help to introduce to more of our users. very helpful

---

<div class="post-metadata">

**Author:** ![costo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/costo/32/35875_2.png) [@costo](https://www.thethingsnetwork.org/forum/u/costo)\
**Post date:** [June 4, 2018, 7:12pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/154 "2018-06-04T19:12:26Z")

</div>

I got this heatsink from an old processorboard that I had in the junkbox. There was a small ventilator on it which I removed.

---

<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 4, 2018, 9:05pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/155 "2018-06-04T21:05:49Z")

</div>

Dear TTN Community,

after struggling o more than 3 days to setup my gateway (RAK831 915MHz + RPi 3) I ran out of ideas what my problem could be.  
I surfed every post related to this device and no one helped to solve my problem, that is the reason why I am creating this post.

To summarize, all the steps I did were:  
1 - Install Raspbian  
2 - Update + Upgrade  
3 - Cloning ic880 repo  
4 - Install using sudo ./install.sh spi  
5 - Modify global\_conf.json according to [US\_global\_conf.json](https://github.com/TheThingsNetwork/gateway-conf/blob/master/US-global_conf.json)  
6 - Modified the rest pin from 25 to 17  
7- Rebooting

My local\_conf.json looks like this:  
_{_  
\_ “gateway\_conf”: {\_  
\_ “gateway\_ID”: “B827EBFFFE3EF015”,\_  
\_ “servers”: [{ “server\_address”: “brazil.thethings.network”, “serv\_port\_up”: 1700, “serv\_port\_down”: 1700, “serv\_enabled”: true }],\_  
\_ “ref\_latitude”: -27.364722222222223,\_  
\_ “ref\_longitude”: -55.89333333333333,\_  
\_ “ref\_altitude”: 0,\_  
\_ “contact\_email”: "mymail@gmail.com",\_  
\_ “description”: "First TTN Gateway of Posadas city "\_  
\_ }\_  
_}_

And my global\_conf.json looks like this:

After rebooting I check the logs of the and everything seems to be running the way it should, see the screenshots:

sudo service ttn-gateway status returns

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

As you can see there is no confirmation from the backen to my GW

and if I execute

cat /var/log/syslog | grep INFO

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

I am pretty sure that I did the right steps to make it run, and I still see “not connected” in TTN’s console.  
Did any of you experienced the same thing when setting up your GW?  
I commit myself to create a well documented tutorial for this device and all the community once this is running.

Thanks in advance for any help that you can provide.

---

<div class="post-metadata">

**Author:** ![Edzelf](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/edzelf/32/46364_2.png) [@Edzelf](https://www.thethingsnetwork.org/forum/u/Edzelf)\
**Post date:** [June 5, 2018, 9:43am UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/156 "2018-06-05T09:43:55Z")

</div>

Try to log in with SSH on your RPi and give the command:  
`tcpdump -XUq port 1700`  
Maybe you have to install tcpdump first.  
After some time you should see messages to and from brazil.thethings.network.

Strange: I see “brazil.thethings.network” in your local\_conf.json, but “us-west.thethings.network” in syslog. Are you sure your config is in “/opt/ttn-gateway/bin/local\_conf.json”? Check it, because there are probably 6 “local\_conf.json” files installed.

---

<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 5, 2018, 12:22pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/157 "2018-06-05T12:22:44Z")

</div>

I also tried that and I can see traffic from the RPi to the server

08:24:59.035545 IP unam.52562 \> brazil.thethings.network.1700: UDP, length 12  
E…(.s@.@…  
…R…R…{o…I…’…\>…  
08:24:59.733260 IP unam.58467 \> brazil.thethings.network.1700: UDP, length 253  
E…@.@.~`... ..R..c...........'...>..{"stat":{"time":"2018-06-05 11:24:59 GMT","rxnb":0,"rxok":0,"rxfw":0,"ackr":0.0,"dwnb":0,"txnb":0,"pfrm":"IMST + Rpi","mail":"mymail@gmail.com","desc":"First TTN of Posadas city'...>..."}} 08:25:04.075539 IP unam.52562 > brazil.thethings.network.1700: UDP, length 12 E..(..@.@.~`…  
…R…R…’…\>…

I was wondering if the console show status “not conected” because there are no end devices (sensors) sending RF packets to the GW yet.

---

<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 5, 2018, 12:30pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/158 "2018-06-05T12:30:49Z")

</div>

> [@snorkman](#):
>
> I was wondering if the console show status

and I am wondering why someone situated in Germany want to try that

[0#90]

---

<div class="post-metadata">

**Author:** ![Edzelf](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/edzelf/32/46364_2.png) [@Edzelf](https://www.thethingsnetwork.org/forum/u/Edzelf)\
**Post date:** [June 5, 2018, 12:36pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/159 "2018-06-05T12:36:50Z")

</div>

You should see “Connected”, even if there are no devices at all.

Now you see traffic to brazil.thethings.network. But you should also see the acknowledge of this message from the remote server. Something like:  
14:26:20.775853 IP 191.235.82.46.1700 \> unam.58467: UDP, length 4  
0x0000: 4500 0020 4040 4000 3111 c554 34a9 4ccb E…@@@.1…T4.L.  
0x0010: c0a8 021c 06a4 ae21 000c aada 01fc 5a01 …!..Z.  
0x0020: 0000 0000 0000 0000 0101 2020 2020 …  
If you see no answer, your gateway is unknown at brazil.thethings.network or at us-west.thethings.network (I do not know which one you are using). Make sure that it is registered there. In my case:  
“gateway\_ID”: “D29076FFFEB8D675” is registered as:  
“eui-d29076fffeb8d675”.

---

<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 5, 2018, 1:21pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/160 "2018-06-05T13:21:08Z")

</div>

Because I am providing remote support, that is why.

---

<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 5, 2018, 3:04pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/161 "2018-06-05T15:04:25Z")

</div>

Hello there,

first of all thanks for your reply.  
I verified the 6 “local\_conf.json” that are present in the packet forwarder directory and they all point to “brazil.thethings.network”.

Should I also modify the “global\_conf.json” file inside :

1. /ttn-gateway/packet\_forwarder/basic\_pkt\_fwd/
2. /ttn-gateway/packet\_forwarder/beacon\_pkt\_fwd/
3. /ttn-gateway/packet\_forwarder/gps\_pkt\_fwd/
4. /ttn-gateway/packet\_forwarder/poly\_pkt\_fwd/

to be exactly the same as the one inside /bin ?

---

<div class="post-metadata">

**Author:** ![Edzelf](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/edzelf/32/46364_2.png) [@Edzelf](https://www.thethingsnetwork.org/forum/u/Edzelf)\
**Post date:** [June 5, 2018, 3:14pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/162 "2018-06-05T15:14:54Z")

</div>

No, only the one in /opt/ttn-gateway/bin is vital. But is does not harm…

---

<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 5, 2018, 3:16pm UTC](https://www.thethingsnetwork.org/forum/t/the-hard-rak831-cafe-part-2/10576/163 "2018-06-05T15:16:56Z")

</div>

Ok I will also try that

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

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