# Teensy+Lora+Multitech Gateway

**URL:** <https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403>\
**Category:** MultiTech Gateways\
**Created:** [October 28, 2015, 12:38pm UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403 "2015-10-28T12:38:30Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcus](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@marcus](https://www.thethingsnetwork.org/forum/u/marcus)\
**Post date:** [October 28, 2015, 12:38pm UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/1 "2015-10-28T12:38:30Z")

</div>

We are trying to build a Lora Sensors with following configuration

Lora Module: RFM95- HOPE RF  
MPU: Teensy 32  
Gateway Multitech 210L ( Linux) - 2 Lora Modules Installed.

We have made the connections as mentioned on your wiki but we are making no progress. On trying to add node on the multitech gateway using the keys mentioned in the example code , we get a reply connection refused. Unfortunately we dont have much idea of using Linux. Also after uploading the lmic 1.5 code as mentioned on your wiki the Serial port( USB) gets disconnected from the computer and teensy 3.2 is shown as unsupported USB device because of which we cannot see any serial print messages. On your website you have mentioned you have got the MultiTech gateway working. Can you kindly help us , we are developing LoraWan setup for an educational township

---

<div class="post-metadata">

**Author:** ![telkamp](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/telkamp/32/35697_2.png) [@telkamp](https://www.thethingsnetwork.org/forum/u/telkamp)\
**Post date:** [October 28, 2015, 12:43pm UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/2 "2015-10-28T12:43:23Z")

</div>

Did you change the radio to x1276 in config.h? This is required for the RFM95. Just checking. That could explain the disconnect on the serial port.

---

<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:** [October 28, 2015, 4:06pm UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/3 "2015-10-28T16:06:25Z")

</div>

I have built the same, but using Teensy LC and HopeRF RFM92W module and I’m still debugging this so not seen anything sensible through it yet but this could partly be down to TTN not displaying all the node values yet.

Andrew

---

<div class="post-metadata">

**Author:** ![marcus](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@marcus](https://www.thethingsnetwork.org/forum/u/marcus)\
**Post date:** [October 29, 2015, 5:06am UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/4 "2015-10-29T05:06:09Z")

</div>

Hi,  
Yes I made the changes in the config file for RFM95. Is there any way I can check the communication from node to node. The code given by TTN is for sending only and probably receiving on a Gateway

---

<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 2, 2015, 9:49pm UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/5 "2015-11-02T21:49:03Z")

</div>

Just tried my Teensy LC and HopeRF RFM92W module together as per the wiki details and it is able to connect and send messages via my Multitech Conduit and see the results via the API.

Result!

Thanks

Andrew

---

<div class="post-metadata">

**Author:** ![smeedy](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/smeedy/32/31307_2.png) [@smeedy](https://www.thethingsnetwork.org/forum/u/smeedy)\
**Post date:** [December 30, 2015, 9:37pm UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/6 "2015-12-30T21:37:35Z")

</div>

Hi guys,

Can confirm the USB disconnect for the RFM95 using a Teensy 3.1. With or without the config.h alterations, and making sure I had a clean build. It is not hardware related (have a few RFM95 modules laying around). The RFM92 works like a charm when I upload the sketch when I use the same layout on the breadboard and only changing the module. Using a RFM92 I can connect to serial and see the message from the device on TTN/MQTT

Martijn

---

<div class="post-metadata">

**Author:** ![ursm](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ursm/32/46475_2.png) [@ursm](https://www.thethingsnetwork.org/forum/u/ursm)\
**Post date:** [December 31, 2015, 9:41am UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/7 "2015-12-31T09:41:26Z")

</div>

I could not imagine, that just a teensy 3.1 should have a malfunction in the usb.  
we have built several nodes based on Thomas’ [code](https://github.com/tftelkamp/arduino-lmic-v1.5) and teensy-lc and teensy 3.2 with hoperf RFM92W & RFM95W. all of them could be debugged via serial.print on the usb.  
I also use **Termite 3.1** on win10 as an usb-terminal. maybe that works?

---

<div class="post-metadata">

**Author:** ![IoT\_Marco](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/iot_marco/32/45432_2.png) [@IoT\_Marco](https://www.thethingsnetwork.org/forum/u/IoT_Marco)\
**Post date:** [December 31, 2015, 9:43am UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/8 "2015-12-31T09:43:31Z")

</div>

Yes, we had the same problem yesterday evening while testing Teensy and HopeRFM95W. Disconnect from USB  
We didn’t have a external power supply available but perhaps you could try a seperate power supply for the HopeRFM95W

---

<div class="post-metadata">

**Author:** ![telkamp](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/telkamp/32/35697_2.png) [@telkamp](https://www.thethingsnetwork.org/forum/u/telkamp)\
**Post date:** [December 31, 2015, 9:54am UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/9 "2015-12-31T09:54:10Z")

</div>

Martijn,

I have exactly the setup you describe here in front of me, and it works.

One thing to check maybe: is the reset properly connected? This pin is inverted on the RFM95W, and it might explain why that one doesn’t work while the RFM92W does.

Thomas

---

<div class="post-metadata">

**Author:** ![smeedy](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/smeedy/32/31307_2.png) [@smeedy](https://www.thethingsnetwork.org/forum/u/smeedy)\
**Post date:** [December 31, 2015, 11:14am UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/10 "2015-12-31T11:14:11Z")

</div>

Thx for the replies gents.

@ursm: The devices crashes and renders the device innumerable in the USB chain and thus does not provide a com. Same result in dmesg when I plug it in a Linux machine.  
@Thomas: Indeed this is strange. I’ve attached the HopeRF specsheets and I do not see any difference. Also no difference in the XBee shields and used the multimeter to be sure. Or do you mean a High/Low inversion on the pin itself?

![](https://www.thethingsnetwork.org/forum/uploads/default/original/1X/8d305f32fa1a0a5b502896fbfdda1fdb0603546d.PNG)  
 ![](https://www.thethingsnetwork.org/forum/uploads/default/original/1X/84bb8e2f9d264f21c89cd390d8fd957bea019526.PNG)

---

<div class="post-metadata">

**Author:** ![ursm](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ursm/32/46475_2.png) [@ursm](https://www.thethingsnetwork.org/forum/u/ursm)\
**Post date:** [December 31, 2015, 11:37am UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/11 "2015-12-31T11:37:59Z")

</div>

what’s your developing environment?  
on some levels of windows you need to install a virtual com driver  
that was not necessary on my win10 environment with arduino 1.6.5 and the teensyduino 1.26

---

<div class="post-metadata">

**Author:** ![niels](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/n/ebca7d/32.png) [@niels](https://www.thethingsnetwork.org/forum/u/niels)\
**Post date:** [December 31, 2015, 1:03pm UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/12 "2015-12-31T13:03:51Z")

</div>

@smeedy  
what Thomas means is that it might be that your RFM95 is constantly resetting itself. If you use an RFM95 instead of RFM92 that everywhere in your code where the reset pin is made HIGH it has to be changed to LOW, and everywhere where it’s set LOW, it needs to be changed to HIGH.

---

<div class="post-metadata">

**Author:** ![telkamp](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/telkamp/32/35697_2.png) [@telkamp](https://www.thethingsnetwork.org/forum/u/telkamp)\
**Post date:** [December 31, 2015, 1:11pm UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/13 "2015-12-31T13:11:55Z")

</div>

> [@niels](#):
>
> @smeedy what Thomas means is that it might be that your RFM95 is constantly resetting itself. If you use an RFM95 instead of RFM92 that everywhere in your code where the reset pin is made HIGH it has to be changed to LOW, and everywhere where it’s set LOW, it needs to be changed to HIGH.

The IBM LMiC library does properly take care of that, but maybe an unconnected reset could explain the problem and the difference. Just guessing.

---

<div class="post-metadata">

**Author:** ![IoT\_Marco](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/iot_marco/32/45432_2.png) [@IoT\_Marco](https://www.thethingsnetwork.org/forum/u/IoT_Marco)\
**Post date:** [December 31, 2015, 2:48pm UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/14 "2015-12-31T14:48:24Z")

</div>

Well, looks like Jeroen’sTeensy is working now 😀

![](https://www.thethingsnetwork.org/forum/uploads/default/original/1X/c69079ed4ebd6b0b14418fa6d1a8d99544ac2fa5.JPG)

…it was a clean install, now running on Windows 7

---

<div class="post-metadata">

**Author:** ![smeedy](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/smeedy/32/31307_2.png) [@smeedy](https://www.thethingsnetwork.org/forum/u/smeedy)\
**Post date:** [January 7, 2016, 1:08am UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/15 "2016-01-07T01:08:57Z")

</div>

Guys…

I should be shot on the spot. Had some multiple lmic libraries lying around. Turned out I was changing one and compiling another and thus using the SX1272 reset setting while using the 95 as you guys predicted. The RFM95 worked without a problem. On a next meeting, beers will be on me.

Only thing I’m struggling with is formatting nice JSON using and sending it thru the LMIC\_setTxData2 method. I’m using the [https://github.com/bblanchon/ArduinoJson](https://github.com/bblanchon/ArduinoJson) lib to prepare my message. But when I’m allocating space and printing it to the uint8\_t array it looks like the JSON is malformed. I’m suspecting the measurelength() for the JsonObject is not consistent.

So somewhat off topic. Do you guys have a best practice formatting JSON before feeding it into the setTxData? Any pointers will do.

cheers,  
Martijn

---

<div class="post-metadata">

**Author:** ![telkamp](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/telkamp/32/35697_2.png) [@telkamp](https://www.thethingsnetwork.org/forum/u/telkamp)\
**Post date:** [January 7, 2016, 8:00am UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/16 "2016-01-07T08:00:33Z")

</div>

> [@smeedy](#):
>
> So somewhat off topic. Do you guys have a best practice formatting JSON before feeding it into the setTxData? Any pointers will do.

My advice: don’t use json. Air-time is a limited resource, and you don’t want to waste it on sending formatted data. Keep your payload as compact as possible, it will allow you to send more data, and more often.

---

<div class="post-metadata">

**Author:** ![wojciech](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/wojciech/32/10781_2.png) [@wojciech](https://www.thethingsnetwork.org/forum/u/wojciech)\
**Post date:** [January 20, 2016, 2:20am UTC](https://www.thethingsnetwork.org/forum/t/teensy-lora-multitech-gateway/403/17 "2016-01-20T02:20:39Z")

</div>

I actually have a blog post about that combo 😀  
[My IoT blog](http://iotblog.org). Works no problem. Also got couple of RFM95s going with different mBed MMUs. Ping me if you need more details  
Wojtek
