# Basics for setting up LoRaHAT/GPS on Raspberry Pi

**URL:** <https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488>\
**Category:** Dragino\
**Created:** [April 21, 2018, 4:53am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488 "2018-04-21T04:53:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![smbunn](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/smbunn/32/47939_2.png) [@smbunn](https://www.thethingsnetwork.org/forum/u/smbunn)\
**Post date:** [April 21, 2018, 4:53am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/1 "2018-04-21T04:53:59Z")

</div>

I have read endless screeds of documentation that skips almost all the steps required to get a Dragino LoRaHAT working with TTN. Whole major important stages are just glossed over, like even which file to modify and how to edit it.

I am trying to get my Dragino LoRaHAT working. I had it working as a single channel gateway which took weeks of effort as all documentation is well out of date, especially with regard to screenshots from TTN on how to register a device. What is really needed is a single repository of this information that can be updated and maintained by interested users like me,

So right now I am trying to set up my LoRaHAT as a node. I am trying to use thethingsnetwork.send-v1 code.

Right away in [http://wiki.dragino.com/index.php?title=Connect\_to\_TTN#Use\_LoRa\_GPS\_HAT\_and\_RPi\_3\_as\_LoRa\_End\_Device](http://wiki.dragino.com/index.php?title=Connect_to_TTN#Use_LoRa_GPS_HAT_and_RPi_3_as_LoRa_End_Device)

at step 6 the instructions it asks you to “Setup your device”, thats the entire instruction and provides no information at all about how to do this.

I would suggest that at least the user is told to do:

```auto
cd lmic_pi-master/examples/thethingsnetwork-send-v1
sudo nano thethingsnetwork.send-v1.cpp

```

Then in that file there are the following lines of code:

```auto
// LoRaWAN Application identifier (AppEUI)
// Not used in this example
static const u1_t APPEUI[8] = { 0x02, 0x00, 0x00, 0x00, 0x00, 0xEE, 0xFF, 0xC0 };

// LoRaWAN DevEUI, unique device ID (LSBF)
// Not used in this example
static const u1_t DEVEUI[8] = { 0x42, 0x42, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF };

// LoRaWAN NwkSKey, network session key 
// Use this key for The Things Network
static const u1_t DEVKEY[16] = { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C };

// LoRaWAN AppSKey, application session key
// Use this key to get your data decrypted by The Things Network
static const u1_t ARTKEY[16] = { 0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C };

// LoRaWAN end-device address (DevAddr)
// See http://thethingsnetwork.org/wiki/AddressSpace
static const u4_t DEVADDR = 0xffffffff ; // <-- Change this address for every node!

```

There is absolutely no information on how to set these values. Where on earth do I find the DevADDR?  
The information on getting the AppSKey and NwkSKey from TTN is so out of date I couldn’t even follow it.

Do I create a new application first? Is the name important?  
Where does one go to get all of this information?

Help please

Simon

---

<div class="post-metadata">

**Author:** ![CurlyWurly](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/curlywurly/32/38668_2.png) [@CurlyWurly](https://www.thethingsnetwork.org/forum/u/CurlyWurly)\
**Post date:** [April 21, 2018, 7:15am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/2 "2018-04-21T07:15:08Z")

</div>

30 second google gave these links - hopefully useful to you

**For setting up a LoraHat gateway**  
[https://www.mobilefish.com/developer/lorawan/lorawan\_quickguide\_build\_lora\_gateway.html](https://www.mobilefish.com/developer/lorawan/lorawan_quickguide_build_lora_gateway.html)

```
Install and build the Single Channel LoRaWAN Gateway on your Raspberry Pi:

    Open a terminal on your Raspberry Pi.
    Create a directory, type: mkdir lorawan_gateway
    Goto the directory, type: cd lorawan_gateway
    Download the Single Channel LoRaWAN Gateway, type:
    git clone https://github.com/tftelkamp/single_chan_pkt_fwd.git
    Goto the sub directory, type: cd single_chan_pkt_fwd
    Edit file main.cpp, type:
    sudo nano main.cpp
    Make changes to the configuration according to your situation (look for: "Configure these values!") :

    / **************************************************************
     *
     * Configure these values!
     *
     ************************************************************* /

    // SX1272 - Raspberry connections
    int ssPin = 6;
    int dio0 = 7;
    int RST = 0;

    // Set spreading factor (SF7 - SF12)
    sf_t sf = SF7;

    // Set center frequency
    uint32_t freq = 868100000; // in Mhz! (868.1)

    // Set location
    float lat=52.4518;
    float lon=4.8119;
    int alt=10.0;

    /* Informal status fields */
    /* platform definition */
    static char platform[24] = "Single Channel Gateway";
    /* used for contact email */
    static char email[40] = "lorawan@mobilefish.com";
    /* used for free form description */
    static char description[64] = "Mobilefish.com LoraWAN Gateway";

    // define servers
    // The Things Network: router.eu.thethings.network
    #define SERVER1 "52.169.76.203"
    // The port on which to send data
    #define PORT 1700

    Write the changes to file, type: CTRL+O
    Exit the file: CTRL+X
    In the sub directory "single_chan_pkt_fwd" compile the code, type: make
    A packet forwarder executable file single_chan_pkt_fwd is created.

```

**For setting up a Lorahat node**

> **[Getting Started with LoRa](https://www.hackster.io/idreams/getting-started-with-lora-fd69d1)**
>
> How to get temperature sensor data from a remote Raspberry Pi via Wireless LoRa Protocol. By Ramin Sangesari.

**Device registration in TTN (use ABP)**  
[https://www.thethingsnetwork.org/docs/devices/registration.html](https://www.thethingsnetwork.org/docs/devices/registration.html)

---

<div class="post-metadata">

**Author:** ![smbunn](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/smbunn/32/47939_2.png) [@smbunn](https://www.thethingsnetwork.org/forum/u/smbunn)\
**Post date:** [April 21, 2018, 10:25pm UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/3 "2018-04-21T22:25:50Z")

</div>

Thanks CurlyWurly but maybe you missed the part of my message where I said I had set it up as a single channel packet forwarder successfully. I can also google for 30 seconds and am not a complete idiot.

I wanted instructions on setting it up as a node. That is where there doesn’t seem to be enough instructions.

Simon

---

<div class="post-metadata">

**Author:** ![glbaum](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/glbaum/32/12895_2.png) [@glbaum](https://www.thethingsnetwork.org/forum/u/glbaum)\
**Post date:** [April 22, 2018, 2:11am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/4 "2018-04-22T02:11:57Z")

</div>

The values that you are looking for are all on the Overview Page for the Device that you registered under your Application. If you already have an application created, and a device created you have access to this information in your account. Also you can always just create another device under your previously made application. The fourth photo under step 1 ([http://wiki.dragino.com/images/thumb/4/49/TTN\_Create\_device\_3.png/900px-TTN\_Create\_device\_3.png](http://wiki.dragino.com/images/thumb/4/49/TTN_Create_device_3.png/900px-TTN_Create_device_3.png)) shows you exactly what you’re looking for on your own account. If you’re using ABP activation you already know that you only need the Network Session Key, the App Session Key, and the Device Address.

While I agree that some of the documentation from Dragino is lacking, out of date, or in some cases just incorrect this set of instructions doesn’t seem to be that bad in comparison. But that might just be my previous experience in programming these devices and also going through Dragino’s other walkthroughs. This could be slightly clearer and probably better organized which I will agree with you on.

If you would like anymore help feel free to ask.

Geof

---

<div class="post-metadata">

**Author:** ![smbunn](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/smbunn/32/47939_2.png) [@smbunn](https://www.thethingsnetwork.org/forum/u/smbunn)\
**Post date:** [April 22, 2018, 5:19am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/5 "2018-04-22T05:19:47Z")

</div>

Thanks Geof

so what is the Device Address? It seems that setting up a device wants you to enter the device address, which makes sense. It then issues the Network Session Key and App session Key. I just haven’t found any documentation that tells you where to find the device Address. Is there some magic Linux code that reveals it? A command line statement? Do I just make one up, if so, what format, string characters, or is it in hex, how many bytes…

thanks

Simon

---

<div class="post-metadata">

**Author:** ![smbunn](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/smbunn/32/47939_2.png) [@smbunn](https://www.thethingsnetwork.org/forum/u/smbunn)\
**Post date:** [April 22, 2018, 5:33am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/6 "2018-04-22T05:33:14Z")

</div>

![pic1](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/8/8403b42f779278c0740d6b15507d29e465e3cdd2.jpg)

As you can see it looks quite different than the image you hyperlinked too, and asks for a Device ID and a Device EUI. There doesn’t appear to be any documentation on how you are supposed to fill these two fields in. Can I just make up any stream of 8 bytes? How then does this actually link to my real device, i.e. how will it recognize it as the same device?

---

<div class="post-metadata">

**Author:** ![CurlyWurly](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/curlywurly/32/38668_2.png) [@CurlyWurly](https://www.thethingsnetwork.org/forum/u/CurlyWurly)\
**Post date:** [April 22, 2018, 7:47am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/7 "2018-04-22T07:47:30Z")

</div>

Simon,

The 30 second google was to say that there could be more info out there.

3 links were posted to you.  
1st gives info about how to manipulate files (you did ask how to edit it - anyway, you’ve updated your post now, so clearly you now know how to do it)  
2nd gives info about setting up a node (your main Q)  
3rd gives info about how to register (Your q about the keys)

At the danger of you assuming you’re an idiot when people are trying to help you 🙂  
Have a look at this video from 8 mins on. It answers a lot of questions that you are probably going to ask - N.B. I can’t remember if it is LSB or MSB and video may be slightly out of date so be prepared to deal with some ambiguity without getting angry about it

---

<div class="post-metadata">

**Author:** ![glbaum](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/glbaum/32/12895_2.png) [@glbaum](https://www.thethingsnetwork.org/forum/u/glbaum)\
**Post date:** [April 22, 2018, 4:30pm UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/8 "2018-04-22T16:30:05Z")

</div>

The Device Address should be created for you as well. When I went to just register a device the only piece of information that I needed to put in was the Device ID which is different from the Device Address. After you register the device you’d then go into the settings and change the activation method to ABP. You should then see that the Device Address, Network Session Key, and App session key will be generated. After you save the new setting(s), you’ll be back at the Device Overview page where it will display that info for you.

Also a side note if you do want a random hexidecimal value generated you can use the following command in a terminal

```bash
openssl rand -hex 8

```

Where the 8 is length in bytes that want generated. This also requires you to have openssl installed but there are other ways to generate a random code as well.

---

<div class="post-metadata">

**Author:** ![glbaum](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/glbaum/32/12895_2.png) [@glbaum](https://www.thethingsnetwork.org/forum/u/glbaum)\
**Post date:** [April 22, 2018, 8:34pm UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/9 "2018-04-22T20:34:32Z")

</div>

Also sorry, I read through your last response quickly and I just wanted to make sure I was more clear. The image you show is just from the first page of the registration process. As I mentioned in my previous post you only really need to fill in the Device ID. Device EUI can be generated by TTN just by clicking on the button on the left side of the field to toggle it from User Generated to TTN Generated (See Picture 1). After you select an ID and if you choose to, let TTN create the Device EUI, hit the register button. This will bring you up to your Device Overview window (see picture 2). You are then going to want to click on the Settings button in the upper right, which will bring you to a new screen where you’ll see something like in my 3 picture. You will want to select ABP, as my picture is already from after I’ve done that. You should now see the options for a Device Address, and the two Keys are listed and they will be generated for you, so after selecting ABP all you have to do is hit save at the bottom of the window. This will bring you back to the Device Overview page which then shows you all three bits of information that you need for you code. Please see my 4th picture to verify that what you are seeing is what I do aside from the the keys and ID being different and this should look like the photo that I posted in my first response if all has gone well. Also note that by default the keys are hidden so you’ll need to click on \<\> button to switch between the hiding and showing the keys in their two formats. For your code you’re going to want the preformatted keys in curly braces {}.

(1) ![reg1](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/3/394765c40a898458da48cec8cf9b4490b758c0e5.png)  
(2) ![reg2](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/d/d4ba8a4be9a0105ae8fccfaa057ade3f08d09c85.png)  
(3) ![reg3](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/f/f6dda766ce6691d67b293f64b90c740ef9bf535d.png)  
(4) ![reg4](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/5/5102f66bf81ab08079e33404e2b4c70c8fa6005c.png)

---

<div class="post-metadata">

**Author:** ![smbunn](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/smbunn/32/47939_2.png) [@smbunn](https://www.thethingsnetwork.org/forum/u/smbunn)\
**Post date:** [April 24, 2018, 4:26am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/10 "2018-04-24T04:26:56Z")

</div>

So I just create a random 8 hex character Device ID and then everything else is created by TTN. I then copy the created values into the thethingsnetwork.send-v1.cpp file.

I note it says that DEV EUI and APP EUI are not used.

Thanks, will try tomorrow

Simon

---

<div class="post-metadata">

**Author:** ![glbaum](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/glbaum/32/12895_2.png) [@glbaum](https://www.thethingsnetwork.org/forum/u/glbaum)\
**Post date:** [April 24, 2018, 12:36pm UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/11 "2018-04-24T12:36:38Z")

</div>

The ID you pick doesn’t need to be in hexadecimal. It just needs to be lowercase and one word. Like in my example I gave my new devices the id/name testytest1. Hope your attempt today works out.

---

<div class="post-metadata">

**Author:** ![smbunn](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/smbunn/32/47939_2.png) [@smbunn](https://www.thethingsnetwork.org/forum/u/smbunn)\
**Post date:** [May 5, 2018, 4:52am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/12 "2018-05-05T04:52:54Z")

</div>

I have successfully modified both  
thethingsnetwork.send-v1.cpp

and

config.h (from the LMIC library installed at /home/pi/lmic\_pi-master/lmic) to use 915 frequency

I started the application

```auto
sudo ./thethingsnetwork-send-v1

```

and it reported

```auto
[894] (1525493216) Sat May 5 04:06:56 2018

2203: freq=902300000
Event EV_TXCOMPLETE, time: 2
[62334] (1525493236) Sat May 5 04:07:16 2018

402232: freq=902300000
Event EV_TXCOMPLETE, time: 22
[c3dd1] (1525493256) Sat May 5 04:07:36 2018

802261: freq=902300000
OhOh. Unknown interrupt flags for FSK
FAILURE
radio.c:629

```

Note the frequency is definitely wrong for AU915. So after a bit of googling I saw the frequencies are stored in lorabase.h  
So I changed the frequency plan to:

```auto
// Default frequency plan for US 915MHz
enum { US915_125kHz_UPFBASE = 916800000,
       US915_125kHz_UPFSTEP = 200000,
       US915_500kHz_UPFBASE = 917500000,
       US915_500kHz_UPFSTEP = 1600000,
       US915_500kHz_DNFBASE = 923300000,
       US915_500kHz_DNFSTEP = 600000

```

and recompiled and started the app, Now it reports:

```auto
[5224] (1525494942) Sat May 5 04:35:42 2018

21035: freq=916800000
OhOh. Unknown interrupt flags for FSK
FAILURE
radio.c:629

```

and I get one message on my gateway. So it works once and once only. No amount of googling will tell me what the error radio.c :629 means

help please

Simon

---

<div class="post-metadata">

**Author:** ![smbunn](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/smbunn/32/47939_2.png) [@smbunn](https://www.thethingsnetwork.org/forum/u/smbunn)\
**Post date:** [May 5, 2018, 5:11am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/13 "2018-05-05T05:11:40Z")

</div>

Fixed it, I also had to change the minimum frequency on the next two lines:

```auto
enum { US915_FREQ_MIN = 916800000,
       US915_FREQ_MAX = 928000000 };

```

I figured out that radio.c:629 was simply that it had failed at line 629 in that module.

---

<div class="post-metadata">

**Author:** ![jtisaacs](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jtisaacs/32/25844_2.png) [@jtisaacs](https://www.thethingsnetwork.org/forum/u/jtisaacs)\
**Post date:** [July 29, 2018, 10:43pm UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/14 "2018-07-29T22:43:19Z")

</div>

Thanks smbunn. I found this helpful. Any chance you have tried getting this to work with OTAA?

---

<div class="post-metadata">

**Author:** ![mbingel](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/m/898d66/32.png) [@mbingel](https://www.thethingsnetwork.org/forum/u/mbingel)\
**Post date:** [August 19, 2018, 10:25pm UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/15 "2018-08-19T22:25:09Z")

</div>

I agree with @smbunn that the documentation is really lacking. Which I personally find a bit disappointing, as the Dragino seems to be a really nice device. It took me days to setup the Dragino Lora Hat on my Raspberry and finally get it to work. Yes, you find endless amounts of documents on Google, but also lots of it is outdated or “not maintained anymore”. And you wonder which git repository to use.

Anyway, I am also looking for a nice example for the Raspberry as a node sending data via LoRaWAN to TTN. The Dragino Hat has a GPS sensor included, it would be cool to just send the current position every minute to TTN while driving through the country to be able to check the coverage of gateways. And I wouldn’t even mind another programming language like python or node.

---

<div class="post-metadata">

**Author:** ![mbingel](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/m/898d66/32.png) [@mbingel](https://www.thethingsnetwork.org/forum/u/mbingel)\
**Post date:** [August 19, 2018, 10:35pm UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/16 "2018-08-19T22:35:01Z")

</div>

I am also getting erratic failures when running ‘./thethingsnetwork-send-v1’:

Sometimes

> ```
> FAILURE
> lmic.c:1759
> 
> ```

but more often

> ```
> FAILURE
> radio.c:629
> 
> ```

---

<div class="post-metadata">

**Author:** ![maxious](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/maxious/32/35835_2.png) [@maxious](https://www.thethingsnetwork.org/forum/u/maxious)\
**Post date:** [August 20, 2018, 1:15am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/17 "2018-08-20T01:15:23Z")

</div>

> [@mbingel](#):
>
> am also looking for a nice example for the Raspberry as a node sending data via LoRaWAN to TTN. The Dragino Hat has a GPS sensor included, it would be cool to just send the current position every minute to TTN while driving through the country to be able to check the coverage of gateways.

This is exactly what I use my Dragino hat for by using the on board GPS. [lmic-rpi-lora-gps-hat/examples/ttn-mapper/main.c at master · maxious/lmic-rpi-lora-gps-hat · GitHub](https://github.com/maxious/lmic-rpi-lora-gps-hat/blob/master/examples/ttn-mapper/main.c) is the program which works with the [http://ttnmapper.org](http://ttnmapper.org) integration

I also recently discovered you can load GPS assistance data from the internet to the Quectel L80 chip to get a faster location lock with [GitHub - gtjoseph/mt3339-utils](https://github.com/f5eng/mt3339-utils)

---

<div class="post-metadata">

**Author:** ![Daviss](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/d/c4cdca/32.png) [@Daviss](https://www.thethingsnetwork.org/forum/u/Daviss)\
**Post date:** [November 11, 2018, 4:37pm UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/18 "2018-11-11T16:37:08Z")

</div>

Finally, I got this working with thethingsnetwork-send-v1. But actually, my task is to turn on an LED when a special word is **received**. How can I modify this to receive messages? Or is there a thethingsnetwork-receive-v1 ? And is there a way to work with Raspberry’s LEDs/GPIOs out of this C code?

---

<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:** [February 22, 2019, 8:33am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/19 "2019-02-22T08:33:11Z")

</div>

2 posts were merged into an existing topic: [Sending Customized Data](https://www.thethingsnetwork.org/t/sending-customized-data/23054/6)

---

<div class="post-metadata">

**Author:** ![kenken64](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kenken64/32/20484_2.png) [@kenken64](https://www.thethingsnetwork.org/forum/u/kenken64)\
**Post date:** [March 3, 2019, 5:25am UTC](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488/20 "2019-03-03T05:25:55Z")

</div>

so what was fix and is it possible to.connect dragino lorawan hat to tnn directly without gateway

[Next page](https://www.thethingsnetwork.org/forum/t/basics-for-setting-up-lorahat-gps-on-raspberry-pi/13488.md?page=2)
