# TTGO T-Beam topic

**URL:** <https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297>\
**Category:** End Devices (Nodes)\
**Created:** [June 25, 2018, 2:58pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297 "2018-06-25T14:58:18Z")\
**Posts on this page:** 20\
**Page:** 10

<div class="post-metadata">

**Author:** ![Felice\_Dip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/felice_dip/32/25844_2.png) [@Felice\_Dip](https://www.thethingsnetwork.org/forum/u/Felice_Dip)\
**Post date:** [September 24, 2019, 1:08pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/195 "2019-09-24T13:08:52Z")

</div>

Is there a particular reason why the baud rate in the sketch was to 115200?

---

<div class="post-metadata">

**Author:** ![DeuxVis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/deuxvis/32/40111_2.png) [@DeuxVis](https://www.thethingsnetwork.org/forum/u/DeuxVis)\
**Post date:** [September 24, 2019, 4:03pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/196 "2019-09-24T16:03:00Z")

</div>

No particular reason, it’s just the most common value for me.

---

<div class="post-metadata">

**Author:** ![LoRaTracker](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/loratracker/32/48502_2.png) [@LoRaTracker](https://www.thethingsnetwork.org/forum/u/LoRaTracker)\
**Post date:** [September 24, 2019, 4:31pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/197 "2019-09-24T16:31:20Z")

</div>

Nope, but the monitor needs to use the same one as in the sketch.

Lots of ??? is a classic symtom of baud rate miss-match.

---

<div class="post-metadata">

**Author:** ![Felice\_Dip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/felice_dip/32/25844_2.png) [@Felice\_Dip](https://www.thethingsnetwork.org/forum/u/Felice_Dip)\
**Post date:** [September 25, 2019, 11:14am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/198 "2019-09-25T11:14:21Z")

</div>

After matching, the serial monitor prints: “No gps Fix” and removing the comment in the else function of [https://github.com/DeuxVis/Lora-TTNMapper-T-Beam/blob/master/gps.cpp](https://github.com/DeuxVis/Lora-TTNMapper-T-Beam/blob/master/gps.cpp) file the message in the serial monitor becomes:  
No gps Fix.  
location valid: 0  
location age: -1  
hdop valid: 1  
hdop age: 549  
hdop: 9999  
altitude valid: 0  
altitude age: -1

Finally, making the variable “bool gps::checkGpsFix()” always true the massage printed on the serial monitor is the following:

ets Jun 8 2016 00:22:57

rst:0x5 (DEEPSLEEP\_RESET),boot:0x33 (SPI\_FAST\_FLASH\_BOOT)  
configsip: 0, SPIWP:0xee  
clk\_drv:0x00,q\_drv:0x00,d\_drv:0x00,cs0\_drv:0x00,hd\_drv:0x00,wp\_drv:0x00  
mode:DIO, clock div:1  
load:0x3fff0018,len:4  
load:0x3fff001c,len:928  
ho 0 tail 12 room 4  
load:0x40078000,len:8740  
load:0x40080400,len:5788  
entry 0x4008069c  
TTN Mapper  
Valid gps Fix.  
Lat: 0.000000  
Lng: 0.000000  
Packet queued  
EV\_TXCOMPLETE (includes waiting for RX windows)

---

<div class="post-metadata">

**Author:** ![jezd](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jezd/32/46461_2.png) [@jezd](https://www.thethingsnetwork.org/forum/u/jezd)\
**Post date:** [September 25, 2019, 11:59am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/199 "2019-09-25T11:59:09Z")

</div>

not sure what the question is? which version of board do you have?

---

<div class="post-metadata">

**Author:** ![LoRaTracker](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/loratracker/32/48502_2.png) [@LoRaTracker](https://www.thethingsnetwork.org/forum/u/LoRaTracker)\
**Post date:** [September 25, 2019, 12:18pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/200 "2019-09-25T12:18:31Z")

</div>

> [@Felice\_Dip](#):
>
> After matching, the serial monitor prints: “No gps Fix”

Then maybe the GPS does not have a fix ?

Is the GPS outdoors with a good view of the sky ?

---

<div class="post-metadata">

**Author:** ![Felice\_Dip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/felice_dip/32/25844_2.png) [@Felice\_Dip](https://www.thethingsnetwork.org/forum/u/Felice_Dip)\
**Post date:** [September 25, 2019, 12:53pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/201 "2019-09-25T12:53:53Z")

</div>

For “jzed”, the version I have is the T22\_V07 20180711.  
For “LoRa Tracker” the GPS was indoor.

---

<div class="post-metadata">

**Author:** ![DeuxVis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/deuxvis/32/40111_2.png) [@DeuxVis](https://www.thethingsnetwork.org/forum/u/DeuxVis)\
**Post date:** [September 26, 2019, 8:07am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/202 "2019-09-26T08:07:20Z")

</div>

Yup the GPS won’t get a fix inside.

What I usually do to debug is use a battery to power up the board outside - under sky - and wait until it get a fix then move it inside. If your walls are not too thick the GPS could continue working.

Otherwise, use a laptop and work outside 🙂

---

<div class="post-metadata">

**Author:** ![Felice\_Dip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/felice_dip/32/25844_2.png) [@Felice\_Dip](https://www.thethingsnetwork.org/forum/u/Felice_Dip)\
**Post date:** [September 26, 2019, 11:39am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/203 "2019-09-26T11:39:48Z")

</div>

IT WORKS!!! At last GPS works. Thanks to all of you that helped me. Now in order to make it works as TTN Mapper node I’ve only to load the following ino file on the board “[https://github.com/DeuxVis/Lora-TTNMapper-T-Beam/blob/master/Lora-TTNMapper-T-Beam.ino](https://github.com/DeuxVis/Lora-TTNMapper-T-Beam/blob/master/Lora-TTNMapper-T-Beam.ino)” and move near a gateway?

---

<div class="post-metadata">

**Author:** ![Verkehrsrot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/verkehrsrot/32/46588_2.png) [@Verkehrsrot](https://www.thethingsnetwork.org/forum/u/Verkehrsrot)\
**Post date:** [September 26, 2019, 5:02pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/204 "2019-09-26T17:02:36Z")

</div>

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

---

<div class="post-metadata">

**Author:** ![DeuxVis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/deuxvis/32/40111_2.png) [@DeuxVis](https://www.thethingsnetwork.org/forum/u/DeuxVis)\
**Post date:** [September 26, 2019, 5:25pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/205 "2019-09-26T17:25:12Z")

</div>

Did you register you device on the things network ?  
You’ll also have to do some setup around there : register, set decoder script, …

---

<div class="post-metadata">

**Author:** ![Felice\_Dip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/felice_dip/32/25844_2.png) [@Felice\_Dip](https://www.thethingsnetwork.org/forum/u/Felice_Dip)\
**Post date:** [September 26, 2019, 5:57pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/206 "2019-09-26T17:57:35Z")

</div>

I registered the device on the things network, I did the ABP activation but at the moment the device status is “never seen”. I inserted the APPSKEY, NWKSKEY and Device Address in the config.h file. and finally I configured the payload decoder of the application created on the TTN with the following code:  
function Decoder(bytes, port) {  
var decoded = {};

```
decoded.latitude = ((bytes[0]<<16)>>>0) + ((bytes[1]<<8)>>>0) + bytes[2];
decoded.latitude = (decoded.latitude / 16777215.0 * 180) - 90;

decoded.longitude = ((bytes[3]<<16)>>>0) + ((bytes[4]<<8)>>>0) + bytes[5];
decoded.longitude = (decoded.longitude / 16777215.0 * 360) - 180;

var altValue = ((bytes[6]<<8)>>>0) + bytes[7];
var sign = bytes[6] & (1 << 7);
if(sign)
{
    decoded.altitude = 0xFFFF0000 | altValue;
}
else
{
    decoded.altitude = altValue;
}

decoded.hdop = bytes[8] / 10.0;

return decoded;

```

}  
I didn’t touch the converter, validator and encoder.  
Tomorrow I’ll go close a gateway. The last thing I will have to do tomorrow is to connect the Lora pin with the pin 33 and turn on the board?

---

<div class="post-metadata">

**Author:** ![Felice\_Dip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/felice_dip/32/25844_2.png) [@Felice\_Dip](https://www.thethingsnetwork.org/forum/u/Felice_Dip)\
**Post date:** [September 27, 2019, 10:36am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/207 "2019-09-27T10:36:43Z")

</div>

I think something I got wrong in the registration of my device because it doesn’t talk with ttn gateway. What are the exact instruction I have to follow in order to register and join my ttgo t-beam to ttn? I think I missed some steps.

---

<div class="post-metadata">

**Author:** ![jezd](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jezd/32/46461_2.png) [@jezd](https://www.thethingsnetwork.org/forum/u/jezd)\
**Post date:** [September 27, 2019, 11:02am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/208 "2019-09-27T11:02:04Z")

</div>

I don’t mean to sound rude, but have you checked out the tutorials at all? registering devices etc are all in the docs \> [https://www.thethingsnetwork.org/docs/devices/registration.html](https://www.thethingsnetwork.org/docs/devices/registration.html)

---

<div class="post-metadata">

**Author:** ![Felice\_Dip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/felice_dip/32/25844_2.png) [@Felice\_Dip](https://www.thethingsnetwork.org/forum/u/Felice_Dip)\
**Post date:** [September 27, 2019, 12:06pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/209 "2019-09-27T12:06:56Z")

</div>

I followed all the instructions of that tutorial. But my device seems not to communicate with the gateway I was close to.

---

<div class="post-metadata">

**Author:** ![DeuxVis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/deuxvis/32/40111_2.png) [@DeuxVis](https://www.thethingsnetwork.org/forum/u/DeuxVis)\
**Post date:** [September 27, 2019, 12:15pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/210 "2019-09-27T12:15:52Z")

</div>

I am not sure you need to connect a dio pin manually on your version of the T-Beam.

I’ll check that later at home - hopefully I have one of that version.

---

<div class="post-metadata">

**Author:** ![Felice\_Dip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/felice_dip/32/25844_2.png) [@Felice\_Dip](https://www.thethingsnetwork.org/forum/u/Felice_Dip)\
**Post date:** [September 27, 2019, 12:44pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/211 "2019-09-27T12:44:49Z")

</div>

First of all I apologise with all because after I checked the config.h file three times I realized that I miss one digit of my device address. Now seems to work because on ttn mapper I’m seeing the circle representing my device node even if I don’t see the gateway (it’s not the mine). Therefore I tell all of you I am sorry once again.  
Anyway, for curiosity, how can I understand if for my device I need to connect a DIO PIN other that seeing the it works?  
Thank you

---

<div class="post-metadata">

**Author:** ![jezd](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jezd/32/46461_2.png) [@jezd](https://www.thethingsnetwork.org/forum/u/jezd)\
**Post date:** [September 27, 2019, 2:58pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/212 "2019-09-27T14:58:47Z")

</div>

T-beam works out of the box, both versions - no need for extra wiring

You need to do some reading up on the LMIC library and pin connections, some boards come with DIO pins unwired and so a little soldering is needed but not for your T-Beams, its documented which pins are needed form different setups

DIO pins documented a little here \> [https://github.com/mcci-catena/arduino-lmic](https://github.com/mcci-catena/arduino-lmic)

---

<div class="post-metadata">

**Author:** ![DeuxVis](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/deuxvis/32/40111_2.png) [@DeuxVis](https://www.thethingsnetwork.org/forum/u/DeuxVis)\
**Post date:** [September 27, 2019, 4:35pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/213 "2019-09-27T16:35:31Z")

</div>

No problem Felice, we all learn from our mistakes.

Only the first versions of the T-Beams needed that patch cable as far as I know. Here’s a pic of mine, notice it did not even had a version string at the usual location. You also can see in the little pin chart that only “Lora IO0” is mentioned, which means you needed to add that cable as I did (I wired DIO1 and DIO2 but only the former is needed for TTN usage AFAIK) :  
 ![T-Beam_earliest](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/1/4/14481e5cdcbaa508fbf0fed1b43483665043790a.jpeg)

And here is a pic of my other one which doesn’t need the patch wire. Notice if mentions pins connection for “Lora IO0” “IO1” and “IO2” :  
 ![T-Beam_T22_V07_20180711](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/9/e/9e1d8f7fa7cb1f9eae7bdcd6e10e8c9e2381c2b8.jpeg)

Looks like it’s the same as yours.

---

<div class="post-metadata">

**Author:** ![Felice\_Dip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/felice_dip/32/25844_2.png) [@Felice\_Dip](https://www.thethingsnetwork.org/forum/u/Felice_Dip)\
**Post date:** [September 27, 2019, 5:29pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/214 "2019-09-27T17:29:46Z")

</div>

Thank you very much DeuxVis. You’ve been crystal clear and very patient.

[Previous page](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297.md?page=9)

[Next page](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297.md?page=11)
