# Setting up Multitech Conduit Gateway for TTN

**URL:** <https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216>\
**Category:** MultiTech Gateways\
**Created:** [October 6, 2015, 10:59pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216 "2015-10-06T22:59:29Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![andrewl](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/andrewl/32/37697_2.png) [@andrewl](https://www.thethingsnetwork.org/forum/u/andrewl)\
**Post date:** [November 19, 2015, 6:04pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/81 "2015-11-19T18:04:26Z")

</div>

might be worth adding this as a wiki entry

Andrew

---

<div class="post-metadata">

**Author:** ![Ropu](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ropu/32/81_2.png) [@Ropu](https://www.thethingsnetwork.org/forum/u/Ropu)\
**Post date:** [November 19, 2015, 8:27pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/82 "2015-11-19T20:27:17Z")

</div>

Here a mBed code to send a hello world to TTN.

[https://developer.mbed.org/users/ropu/code/mDot\_LoRa\_example\_TTN\_connect/](https://developer.mbed.org/users/ropu/code/mDot_LoRa_example_TTN_connect/)

this should replace the terminal commands.

Just got my Buenos Aires TTN Multitech gateway working!

[http://thethingsnetwork.org/api/v0/nodes/0201BA01/](http://thethingsnetwork.org/api/v0/nodes/0201BA01/)

thanks for all the help

---

<div class="post-metadata">

**Author:** ![brandon-multitech](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/brandon-multitech/32/108_2.png) [@brandon-multitech](https://www.thethingsnetwork.org/forum/u/brandon-multitech)\
**Post date:** [November 19, 2015, 8:36pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/83 "2015-11-19T20:36:22Z")

</div>

> [@robbo](#):
>
> Don’t forget to add your gateway EUI from the label on the bottom of your Conduit. Note that I used a fixed IP rather than croft.thethings.girovito.nl since I did not set up the Conduit for DNS.

Good walk through @robbo. Just one clarification. The EUI in the gateway config should be the EUI of the MTAC-LORA accessory card instead of the Conduit.

-Brandon

---

<div class="post-metadata">

**Author:** ![robbo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/robbo/32/431_2.png) [@robbo](https://www.thethingsnetwork.org/forum/u/robbo)\
**Post date:** [November 19, 2015, 9:58pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/84 "2015-11-19T21:58:56Z")

</div>

@brandon-multitech Thanks for the correction. I made the update. Is there a way to query the EUI from the command line? I must have used the wrong EUI but it still worked?

---

<div class="post-metadata">

**Author:** ![Ropu](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ropu/32/81_2.png) [@Ropu](https://www.thethingsnetwork.org/forum/u/Ropu)\
**Post date:** [November 19, 2015, 10:36pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/85 "2015-11-19T22:36:55Z")

</div>

Just corrected my EUI to the mTAC

but having an issue with the packages.

when i move the mDot, lets say 10mts, i start loosing packeges and getting this log

```
##### 2015-11-19 22:33:34 GMT #####
### [UPSTREAM] ###

# RF packets received by concentrator: 0
# CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
# RF packets forwarded: 0 (0 bytes)
# PUSH_DATA datagrams sent: 0 (0 bytes)
# PUSH_DATA acknowledged: 0.00%
### [DOWNSTREAM] ###
# PULL_DATA sent: 1 (0.00% acknowledged)
# PULL_RESP(onse) datagrams received: 0 (0 bytes)
# RF packets sent to concentrator: 0 (0 bytes)
# TX errors: 0
##### END #####
WARNING: [down] ignoring invalid packet

```

when i get back closer, i start getting this, and msg are bvack in the TTN API

```
lgw_receive:1428: FIFO content: Pkts: 1 7 1 Stat: 7 Size: 85
lgw_receive:1443: [2 17]
Note: LoRa packet
```

---

<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:** [November 19, 2015, 11:14pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/86 "2015-11-19T23:14:42Z")

</div>

> [@robbo](#):
>
> Is there a way to query the EUI from the command line?

The lora-network-server script uses

```
mts-io-sysfs show lora/eui 2> /dev/null

```

to get the EUI.

---

<div class="post-metadata">

**Author:** ![lars\_xithing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/lars_xithing/32/289_2.png) [@lars\_xithing](https://www.thethingsnetwork.org/forum/u/lars_xithing)\
**Post date:** [November 20, 2015, 7:52pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/87 "2015-11-20T19:52:07Z")

</div>

Hi all!

You guys helped out a ton, especially the post from robbo was very valuable. Unfortunately, it’s not working yet.

I don’t have an mDot yet, only the gateway. I’m simulating messages with mosquitto\_pub, and it seems like they’re being received (I see “Note: LoRa packet” in the packet forwarder log). However, nothing is forwarded to TTN, I get 0% ACK and (after sending some messages) a CRC\_FAIL of 100%.

I used tcpdump to see that there is some UDP traffic going to TTN, once every 12 seconds or so, and a package coming back as well. So that’s good I suppose!

A typical log entry:

```
##### 2015-11-20 19:49:24 GMT #####
### [UPSTREAM] ###
# RF packets received by concentrator: 0
# CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
# RF packets forwarded: 0 (0 bytes)
# PUSH_DATA datagrams sent: 0 (0 bytes)
# PUSH_DATA acknowledged: 0.00%
### [DOWNSTREAM] ###
# PULL_DATA sent: 2 (0.00% acknowledged)
# PULL_RESP(onse) datagrams received: 0 (0 bytes)
# RF packets sent to concentrator: 0 (0 bytes)
# TX errors: 0
##### END #####
WAlgw_receive:1428: FIFO content: Pkts: 1 fe 2 Stat: 7 Size: 6d
lgw_receive:1443: [5 17]
Note: LoRa packet
RNING: [down] ignoring invalid packet

##### 2015-11-20 19:49:44 GMT #####
### [UPSTREAM] ###
# RF packets received by concentrator: 1
# CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00%
# RF packets forwarded: 0 (0 bytes)
# PUSH_DATA datagrams sent: 0 (0 bytes)
# PUSH_DATA acknowledged: 0.00%
### [DOWNSTREAM] ###
# PULL_DATA sent: 1 (0.00% acknowledged)
# PULL_RESP(onse) datagrams received: 0 (0 bytes)
# RF packets sent to concentrator: 0 (0 bytes)
# TX errors: 0
##### END #####
WARNING: [down] ignoring invalid packet
WARNING: [down] ignoring invalid packet

```

Anyone have any idea what it could be? I am not sure what to set for network and passphrase in lora-network-server.conf for example, does it matter? Or is it simply not possible to send and receive with a gateway, and should I wait for my mDot?

Does someone perhaps have an example global\_conf.json for EU?

---

<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:** [November 20, 2015, 11:13pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/88 "2015-11-20T23:13:12Z")

</div>

> [@lars\_xithing](#):
>
> I see “Note: LoRa packet” in the packet forwarder log

That’s just data being received that might or might not be a valid packet. Stat: 7 actually is a CRC error (valid packets have stat 5) so no valid data has been received.

> [@lars\_xithing](#):
>
> However, nothing is forwarded to TTN, I get 0% ACK and (after sending some messages) a CRC\_FAIL of 100%.

Packets with CRC errors are (rightly) not forwarded.

> [@lars\_xithing](#):
>
> I am not sure what to set for network and passphrase in lora-network-server.conf for example, does it matter?

For TTN you need to use the instructions to make it a forwarder (step 3 in robbos message). The MultiTech software does not allow multiple servers so you will not be able to use the network server on the device. (If you want send to multiple servers, check my message [70] to get the poly\_packet\_forwarder, the package contains a valid example config for use in the EU)

> [@lars\_xithing](#):
>
> Or is it simply not possible to send and receive with a gateway, and should I wait for my mDot?

You got it, the gateway will not receive packets it is sending so you need a node to receive data.

A sample EU config for the MultiTech software:

```
{
"SX1301_conf" : 
{
	"chan_FSK" : 
	{
		"bandwidth" : 250000,
		"datarate" : 50000,
		"enable" : true,
		"freq_deviation" : 25000,
		"if" : 100000,
		"radio" : 0
	},
	"chan_Lora_std" : 
	{
		"bandwidth" : 250000,
		"enable" : true,
		"if" : -200000,
		"radio" : 0,
		"spread_factor" : 7
	},
	"chan_multiSF_0" : 
	{
		"enable" : true,
		"if" : -400000,
		"radio" : 0
	},
	"chan_multiSF_1" : 
	{
		"enable" : true,
		"if" : -200000,
		"radio" : 0
	},
	"chan_multiSF_2" : 
	{
		"enable" : true,
		"if" : 0,
		"radio" : 0
	},
	"chan_multiSF_3" : 
	{
		"enable" : true,
		"if" : -400000,
		"radio" : 1
	},
	"chan_multiSF_4" : 
	{
		"enable" : true,
		"if" : -200000,
		"radio" : 1
	},
	"chan_multiSF_5" : 
	{
		"enable" : true,
		"if" : 0,
		"radio" : 1
	},
	"chan_multiSF_6" : 
	{
		"enable" : true,
		"if" : 200000,
		"radio" : 1
	},
	"chan_multiSF_7" : 
	{
		"enable" : true,
		"if" : 400000,
		"radio" : 1
	},
	"radio_0" : 
	{
		"enable" : true,
		"freq" : 868500000
	},
	"radio_1" : 
	{
		"enable" : true,
		"freq" : 869500000
	}
},
"gateway_conf" : 
{
	"forward_crc_disabled" : true,
	"forward_crc_error" : false,
	"forward_crc_valid" : true,
	"gateway_ID" : "<YOUR ID HERE>",
	"keepalive_interval" : 12,
	"push_timeout_ms" : 120,
	"serv_port_down" : 1700,
	"serv_port_up" : 1700,
	"server_address" : "54.229.214.112",
	"stat_interval" : 20,
	"synch_word" : 52
}
}

```

A valid config is actually generated by lora-network-server in /var/run/lora (apart from the server address and ports) if you start it with the configuration for EU as described on the [MultiTech Website](http://www.multitech.net/developer/software/lora/getting-started-with-lora-conduit-mlinux/) (steps 4-7)

---

<div class="post-metadata">

**Author:** ![lars\_xithing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/lars_xithing/32/289_2.png) [@lars\_xithing](https://www.thethingsnetwork.org/forum/u/lars_xithing)\
**Post date:** [November 21, 2015, 11:09am UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/89 "2015-11-21T11:09:24Z")

</div>

Appreciate the help. I suppose I need to wait for my node to arrive then. Everything else looks good, so looking forward to it!

---

<div class="post-metadata">

**Author:** ![markstanley](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/markstanley/32/301_2.png) [@markstanley](https://www.thethingsnetwork.org/forum/u/markstanley)\
**Post date:** [November 23, 2015, 9:47am UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/90 "2015-11-23T09:47:12Z")

</div>

Hi there, I’m getting results appear in the Node bit of the API - [http://thethingsnetwork.org/api/v0/nodes/02011E01/](http://thethingsnetwork.org/api/v0/nodes/02011E01/) but there is no entry for my gateway (008000000000A052) in the Gateway bit of the API.

Any idea what I am missing?

I have an mlinux Conduit with an MTAC-LORA-868 card.

Thanks, Mark

---

<div class="post-metadata">

**Author:** ![zb45](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/z/c2a13f/32.png) [@zb45](https://www.thethingsnetwork.org/forum/u/zb45)\
**Post date:** [November 23, 2015, 11:13am UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/91 "2015-11-23T11:13:10Z")

</div>

@mark: this sounds like the same problem I had with my DIY gateway: [Setting up your first gateway](https://www.thethingsnetwork.org/forum/t/setting-up-your-first-gateway/37/42)

My gateway wasn’t sending geo-info, and because of that, it didn’t show up in the list.

---

<div class="post-metadata">

**Author:** ![markstanley](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/markstanley/32/301_2.png) [@markstanley](https://www.thethingsnetwork.org/forum/u/markstanley)\
**Post date:** [November 23, 2015, 6:02pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/92 "2015-11-23T18:02:53Z")

</div>

Ah, yes using gps\_pkt\_fwd makes it appear in the Gateways , thanks 🙂

For info gps\_pkt\_fwd has different params to basic\_pkt\_fwd - it doesn’t accept -l logfile, so you need to strip that bit out of /etc/init.d/lora-network-server where it uses the start-stop daemon to launch pkt\_fwd.

Follow-up question - how do I configure or display the logitude and latitude? Mine are coming out blank. [http://thethingsnetwork.org/api/v0/gateways/008000000000A052/](http://thethingsnetwork.org/api/v0/gateways/008000000000A052/)

---

<div class="post-metadata">

**Author:** ![zb45](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/z/c2a13f/32.png) [@zb45](https://www.thethingsnetwork.org/forum/u/zb45)\
**Post date:** [November 23, 2015, 6:27pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/93 "2015-11-23T18:27:39Z")

</div>

I just filled them in in the global\_conf.json file

---

<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:** [November 23, 2015, 6:29pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/94 "2015-11-23T18:29:46Z")

</div>

See this message for [Configuring longitude and latitude](https://www.thethingsnetwork.org/forum/t/setting-up-your-first-gateway/37/31)

---

<div class="post-metadata">

**Author:** ![markstanley](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/markstanley/32/301_2.png) [@markstanley](https://www.thethingsnetwork.org/forum/u/markstanley)\
**Post date:** [November 23, 2015, 6:45pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/95 "2015-11-23T18:45:22Z")

</div>

Fantastic - thanks both for your help - all working nicely now 🙂

---

<div class="post-metadata">

**Author:** ![pz1](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/pz1/32/3005_2.png) [@pz1](https://www.thethingsnetwork.org/forum/u/pz1)\
**Post date:** [November 23, 2015, 6:48pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/96 "2015-11-23T18:48:48Z")

</div>

Just my 2cts  
Would be good if someone knowledgeable could turn this thread into a manual like the one described for Kerlink in the [Wiki tree](http://thethingsnetwork.org/wiki/Hardware/OverviewGateways)?

---

<div class="post-metadata">

**Author:** ![markstanley](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/markstanley/32/301_2.png) [@markstanley](https://www.thethingsnetwork.org/forum/u/markstanley)\
**Post date:** [November 23, 2015, 7:26pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/97 "2015-11-23T19:26:16Z")

</div>

Here you are: [http://thethingsnetwork.org/wiki/Installing-your-Multitech-mLinux-Conduit](http://thethingsnetwork.org/wiki/Installing-your-Multitech-mLinux-Conduit)

---

<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:** [November 23, 2015, 10:43pm UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/98 "2015-11-23T22:43:53Z")

</div>

@markstanley  
Just looked at your write-up. Thank you for creating it, however two remarks (I do not want to start modifying your work right away):

- Have you read my messages concerning the difference in (correctly) received packets between gps\_pkt\_fw and basic\_pkt\_fwd? If you want to be shown active on TTN I strongly suggest you try my build of poly\_pkt\_fwd for the MultiTech. Otherwise stay on basic\_pkt\_fwd if you want reliable packet reception and forwarding and do not need to be shown active.  
(poly\_pkt\_fwd is a ‘drop in’ replacement for basuc\_pkt\_fwd with regards to the command line arguments)
- Not everyone with a MultiTech gateway will have mdots, as a result not everyone needs to sign-up @ mbed. Also people without an MultiTech gateway might use mdots, so may-be it would be better to split it into two pages?

---

<div class="post-metadata">

**Author:** ![markstanley](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/markstanley/32/301_2.png) [@markstanley](https://www.thethingsnetwork.org/forum/u/markstanley)\
**Post date:** [November 24, 2015, 10:13am UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/99 "2015-11-24T10:13:24Z")

</div>

@kersing - sorry to say but I haven’t got poly\_pkt\_fwd working here. I installed this one: [https://github.com/kersing/packet\_forwarder/raw/master/multitech-bin/poly-packet-forwarder\_2.1-r1\_arm926ejste.ipk](https://github.com/kersing/packet_forwarder/raw/master/multitech-bin/poly-packet-forwarder_2.1-r1_arm926ejste.ipk)

Logfile:  
\*\*\* Poly Packet Forwarder for Lora Gateway \*\*\*  
Version: 2.1.0  
\*\*\* Lora concentrator HAL library version info \*\*\*  
Version: 3.1.0; Options: ftdi;

* * *

INFO: Little endian host  
INFO: found global configuration file /var/config/lora/global\_conf.json, parsing  
INFO: /var/config/lora/global\_conf.json does contain a JSON object named SX1301\_  
WARNING: Data type for lorawan\_public seems wrong, please check  
WARNING: Data type for clksrc seems wrong, please check  
INFO: lorawan\_public 0, clksrc 0  
INFO: no configuration for tx gain lut 0  
INFO: no configuration for tx gain lut 1  
…  
…  
INFO: no configuration for tx gain lut 15  
INFO: Configuring TX LUT with 0 indexes  
WARNING: Failed to configure concentrator TX Gain LUT

---

<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:** [November 24, 2015, 10:22am UTC](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216/100 "2015-11-24T10:22:33Z")

</div>

@markstanley You need to use the example global\_conf.json included as the newer versions of the software made more settings configurable. Alternatively the GitHub repo has example data for both 868 and 915 MHz setups.

[Previous page](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216.md?page=4)

[Next page](https://www.thethingsnetwork.org/forum/t/setting-up-multitech-conduit-gateway-for-ttn/216.md?page=6)
