Arcao, how did you get the temperature reading of the Pi-Zero-W ? I like to show that temperature in my Domoticz system.
I also like to attach a GPS to my RAK831, like shown on your picture. Did you connect only the PPS to the RAK or did you connect RX-TX too ?
I don’t see an airvent at all…
you need something like this in that airtight system
I wonder if a GPS-PPS signal would help solve some joining problems with my RAK gateway.
The gateway can receive SF7,8 and 9 very well but when I try to join a Pro-Mini/RFM95 node it cannot join with SF7 or SF8, even SF9 sometimes does not join, but in the end all nodes will join in SF9 or SF10. The same nodes have no difficulti to join with a signal channel ESP8266/RFM95 gateway in SF8.
I believe this could be a timing problem. The RAK831 reports every minute about a time offset that drifts often more than 100 microseconds. According to this post https://www.thethingsnetwork.org/forum/u/Epyon only the PPS signal is neede. So i am going to connect PPS from a Ublox receiver to the RAK.
The LoraGW is sending the CPU temperature every 5 minutes to my MQTT server. Node-Red then show the value on a dashboard.
I just installed mosquitto_pub:
sudo apt install mosquitto-clients
Then I added cron directory /etc/cron.5minutes and appended bellow line into /etc/contab:
*/5 * * * * root cd / && run-parts --report /etc/cron.5minutes
in the /etc/cron.5minutes I created shell script:
#!/bin/sh
/opt/vc/bin/vcgencmd measure_temp | awk -F"=" '{print $2}' | awk -F"'" '{print $1}' | mosquitto_pub -h mqtt -u my_user -P my_password -t my/topic/cpu_temp -l
About the GPS, I soldered U.FL connector near the SMA and connected smaller china GPS antenna instead of bigger one delivered with RAK831 converter board. I also tried to use NMEA data for MP forwarder and it works, at least it’s sending correct location info to TTN console. I’m planing to enable beacon data sending and valid GPS is crucial for this as I know.
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. There is no GPS module footprint on it and also in the LoRaGW-setup repository 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 .
Here is the RAK831 converter board schema.
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"
}
}
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.
i have just received tyhe new board the jumper as in photo
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.
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
@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.
we are working in this tutorial now. hopefully update you soon later and together will RAK833 formal launch
you like smaller GPS antenna?
where to get this heatsink? maybe we can help to introduce to more of our users. very helpful
I got this heatsink from an old processorboard that I had in the junkbox. There was a small ventilator on it which I removed.
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
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
As you can see there is no confirmation from the backen to my GW
and if I execute
cat /var/log/syslog | grep INFO
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.
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.
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.
and I am wondering why someone situated in Germany want to try that
[0#90]
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”.