# 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:** 4

<div class="post-metadata">

**Author:** ![covraworks](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/covraworks/32/16519_2.png) [@covraworks](https://www.thethingsnetwork.org/forum/u/covraworks)\
**Post date:** [September 11, 2018, 5:48am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/61 "2018-09-11T05:48:58Z")

</div>

Sorry forma that! You are fully right, you can activate loraWAN by code😁

---

<div class="post-metadata">

**Author:** ![nograin](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/nograin/32/35697_2.png) [@nograin](https://www.thethingsnetwork.org/forum/u/nograin)\
**Post date:** [September 19, 2018, 9:00pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/62 "2018-09-19T21:00:42Z")

</div>

so i finally tried to get this thing running, hoping it would be easy with @DeuxVis TTNMapper port… well it likely _is_ easy, but still being a noob i guess i’m missing some basic points.

it seems t-beam and software are running fine, i get reasonable output in the serial console and i can see traffic coming in on my TTN-gateway.

but - and this is something i can’t get my head wrapped round: the devaddr i see in the TTN-console is different from the one i set in config.h … is this normal with ABP activation? but since there’s a device with a different devaddr waiting for data in the TTN-app - i suspect this can’t work that way…  
any idea what i’m doing wrong?

thanks,  
markus.

---

<div class="post-metadata">

**Author:** ![nograin](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/nograin/32/35697_2.png) [@nograin](https://www.thethingsnetwork.org/forum/u/nograin)\
**Post date:** [September 20, 2018, 10:53am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/63 "2018-09-20T10:53:33Z")

</div>

well, after creating a new device in the TTN app and using it’s devaddr i got an error compliling - so i realized it wasn’t the right format. after some digging found out i’d have to prefix the 0x

now i do get packets (22 bytes) with the correct devaddr in the gateway console - but not in the app itself, the device in there still shows a status of “never seen” … ☹

---

<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 20, 2018, 2:15pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/64 "2018-09-20T14:15:38Z")

</div>

check your device keys have not changed (NWKSKEY/APPSKEY) and copied to config.h, double check and then recompile - this is often the issue if the gateway is getting the packets but not the app

---

<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 20, 2018, 2:47pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/65 "2018-09-20T14:47:33Z")

</div>

Finally got my tto t-beam working, had to tidy up code and had issues around the board type, in the end my platformio.ini looked like the following:-

```auto
[env:ttgobeam]
platform = espressif32
board = ttgo-lora32-v1
framework = arduino
upload_speed = 921600
monitor_speed = 115200
lib_deps =
https://github.com/matthijskooijman/arduino-lmic
https://github.com/mikalhart/TinyGPSPlus
build_flags =
-mfix-esp32-psram-cache-issue

```

No extra wiring needed, builtin LED was on pin 14 mind, not 21

---

<div class="post-metadata">

**Author:** ![hasiflo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/hasiflo/32/35697_2.png) [@hasiflo](https://www.thethingsnetwork.org/forum/u/hasiflo)\
**Post date:** [October 30, 2018, 3:23pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/66 "2018-10-30T15:23:37Z")

</div>

Hi,  
has anybody got the GPS-module (I use the m8n version) into sleep-mode?

I think the power of the gps-module can’t be switched off with a gpio, right?

Best regards

---

<div class="post-metadata">

**Author:** ![rhinoteknl](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rhinoteknl/32/35592_2.png) [@rhinoteknl](https://www.thethingsnetwork.org/forum/u/rhinoteknl)\
**Post date:** [October 30, 2018, 7:25pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/67 "2018-10-30T19:25:50Z")

</div>

i have got TTGO T-beam (868) installed in my laptop with win7, but arduinio compiler doen’t work properly it says error at the end of compiling

expected ‘,’ or ‘;’ before ‘TinyGPSPlus’

TinyGPSPlus gps ;

---

<div class="post-metadata">

**Author:** ![rhinoteknl](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rhinoteknl/32/35592_2.png) [@rhinoteknl](https://www.thethingsnetwork.org/forum/u/rhinoteknl)\
**Post date:** [October 30, 2018, 7:27pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/68 "2018-10-30T19:27:52Z")

</div>

I am having same problem with my TTGO -Tbeam , could you please share your coding to very with mine

---

<div class="post-metadata">

**Author:** ![rodri16](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rodri16/32/45237_2.png) [@rodri16](https://www.thethingsnetwork.org/forum/u/rodri16)\
**Post date:** [October 31, 2018, 12:03am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/69 "2018-10-31T00:03:26Z")

</div>

On the Tbeam GPS is powered directly from 3.3V so it is not possible to switch it off with a GPIO (without cutting the trace)  
I go into deep sleep mode on ESP32 but GPS never gets the position because it is rebooting every time  
Also trying to reduce consumption in the gps moduel sending Special characters (0xB5, 0x62, 0x02, 0x41, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x4D, 0x) but also without sucess  
Take a look to these links  
[Arduino Forum and characters to send](https://forum.arduino.cc/index.php?topic=497410.15)  
[Neo6 power management](https://www.u-blox.com/sites/default/files/products/documents/u6-PowerMgt_AppNote_%28GPS.G6-X-10014%29.pdf)  
Keep trying, let you know

---

<div class="post-metadata">

**Author:** ![rhinoteknl](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rhinoteknl/32/35592_2.png) [@rhinoteknl](https://www.thethingsnetwork.org/forum/u/rhinoteknl)\
**Post date:** [November 5, 2018, 7:39pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/70 "2018-11-05T19:39:38Z")

</div>

i am unable to upload TTN-Mapper coding into TTGO Tbeam , Arduino compiler results this error;

Using library SPI at version 1.0 in folder: C:\Users\dvfd\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\SPI  
exit status 1  
Error compiling for board Heltec\_WIFI\_LoRa\_32.

Please some body help

---

<div class="post-metadata">

**Author:** ![2solve](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/2solve/32/35697_2.png) [@2solve](https://www.thethingsnetwork.org/forum/u/2solve)\
**Post date:** [November 6, 2018, 7:26pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/71 "2018-11-06T19:26:53Z")

</div>

Hello rodri16,

I tried the TTGO beam and I did have the same problem as you guys. I was not able to put the GPS in sleep mode and the current was about 50 mA. I then desoldered the GPS module and the current went to 2.2 mA, ever so this is much better, for a low battery application this is still pretty high.

I also tried the TTGO LoRA V2.0 the current in sleep mode is 0.16 mA for this chip. (I did also remove a LED that didn’t turn off, I don’t know if this LED is connected to a GPIO).

```
Serial.println("go in to sleep");
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
esp_deep_sleep_start();
```

---

<div class="post-metadata">

**Author:** ![rodri16](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rodri16/32/45237_2.png) [@rodri16](https://www.thethingsnetwork.org/forum/u/rodri16)\
**Post date:** [November 23, 2018, 6:12pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/73 "2018-11-23T18:12:22Z")

</div>

Cool Jazzip0 , well done!  
Did you try sending periodically data to TTN with GPS position and going into sleep mode to see how long does GPS take to have a fix position?

---

<div class="post-metadata">

**Author:** ![rhinoteknl](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rhinoteknl/32/35592_2.png) [@rhinoteknl](https://www.thethingsnetwork.org/forum/u/rhinoteknl)\
**Post date:** [November 28, 2018, 10:07am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/75 "2018-11-28T10:07:58Z")

</div>

Hi,  
I copied the same code to my TTGO-Tbeam device and there is no compiler error , uploaded smoothly with my device addr and config.

but the device shows no connectivity on TTN console side.

Please help.

---

<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:** [December 5, 2018, 11:29am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/78 "2018-12-05T11:29:42Z")

</div>

@ **jazzip0** - if you read this… excuses but I noticed that the system was thinking you’re a spammer.

_and I can’t ‘undo’ this_

---

<div class="post-metadata">

**Author:** ![paulb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/paulb/32/44714_2.png) [@paulb](https://www.thethingsnetwork.org/forum/u/paulb)\
**Post date:** [January 20, 2019, 10:32am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/80 "2019-01-20T10:32:20Z")

</div>

Would it be an idea to use wifi to get location when the gps data is not valid? That way you could keep following your pet indoors.  
The downsides here are that the unit is more sized toward a car or an ebike and that it seems to be rather power hungry on battery. Any progress on that? I’ve seen a sketch that delays sending when the position did not change, that should already make a difference.

> **[PiAir/Lora-TTNMapper-T-Beam](https://github.com/PiAir/Lora-TTNMapper-T-Beam)**
>
> TTNMapper on the TTGO T-Beam. Contribute to PiAir/Lora-TTNMapper-T-Beam development by creating an account on GitHub.

  
[https://ictoblog.nl/2018/11/25/ttn-mapper-versie-2-ttgo-t-beam-eerste-resultaten](https://ictoblog.nl/2018/11/25/ttn-mapper-versie-2-ttgo-t-beam-eerste-resultaten)

---

<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:** [January 21, 2019, 1:42pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/81 "2019-01-21T13:42:38Z")

</div>

@paulb : I’m not working on that project at the moment, but I definitely will integrate any improvements other people are publishing at some point.

If you want it faster, a great way to help is to submit a pull request on github.

---

<div class="post-metadata">

**Author:** ![rem73](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rem73/32/35697_2.png) [@rem73](https://www.thethingsnetwork.org/forum/u/rem73)\
**Post date:** [January 31, 2019, 9:42pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/83 "2019-01-31T21:42:14Z")

</div>

Hello,  
After many investigations i have the solution to improve the poor level of transmit power on Lora TTGO version 1 at 868 Mhz ( I suppose it is version 1.) The lora TTGo like this :

> **[US $12.16 15% OFF|TTGO 868MHz/915MHz SX1276 ESP32 LoRa 0.96 Inch Blue OLED...](https://www.aliexpress.com/item/TTGO-868MHz-915MHz-SX1276-ESP32-LoRa-0-96-Inch-Blue-OLED-Display-Bluetooth-WIFI-Lora-Kit/32840258107.html)**
>
> Smarter Shopping, Better Living! Aliexpress.com

There are 2 issues :  
Software :LMIC library is not clear on this side : Check radio.c file, and go to SX1276 power definition ( about line 476 ) : add this at the end of configuration file: writeReg(RegPaConfig,0b01111111) : It suppose you have a hardware witout Paboost connected.

Hardware:Is low cost, interresting but poor RF design. I remove all the parts at he RF filter. I apply the Semtech ref design to changes 8 capacitors and inductors, and use Pa output without Paboost option  
[https://www.semtech.com/uploads/documents/SX1276MB1MAS\_e315v01a\_prod\_folder.zip](https://www.semtech.com/uploads/documents/SX1276MB1MAS_e315v01a_prod_folder.zip)

Measurement are performed with radio laboratory equipement in conducted condition : about ±0,1 dBm absolute accuracy. That’s my job.

Before : 2dBm : about 1,6 mW ( with LMIC modification describe above)  
After : 14dBm : 25mW. ( with LMIC same modification describe above)

Conclusion : some issue around lora TTGO could be the result of wrong parts…Simply apply Semtech refdesign could solve the issue, without hard optimisation, without network analyser and PCB effect compensation.

I don’t check the receiver parts. May be some errors on design again…

You cannot have this kind of issues with RFM95 module.

---

<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 1, 2019, 9:58am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/84 "2019-02-01T09:58:34Z")

</div>

buying a new one is probably cheaper… time is money 😉

---

<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:** [February 1, 2019, 10:58am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/85 "2019-02-01T10:58:40Z")

</div>

but sure that the newer versions does not have these or other flaws in RF design?

---

<div class="post-metadata">

**Author:** ![darkman](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/darkman/32/44267_2.png) [@darkman](https://www.thethingsnetwork.org/forum/u/darkman)\
**Post date:** [February 1, 2019, 11:28am UTC](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-topic/15297/86 "2019-02-01T11:28:06Z")

</div>

nice. tnx.

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

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