# LilyGO TTGO T-Motion - no serial output / no ttn packets

**URL:** <https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482>\
**Category:** Uncategorized\
**Created:** [July 11, 2020, 11:45pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482 "2020-07-11T23:45:26Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [October 21, 2021, 9:03am UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/47 "2021-10-21T09:03:49Z")

</div>

> [@ELPIDOFOROSANSTASIOU](#):
>
> This should be renames as ttgo-Motion from hell.  
> …  
> i have bought 10 of this thinking that could make then work .

Maybe better try one board first a next time.

The T-Motion definely is not an Arduino friendly board because not standard supported with any Arduino BSP (board support package).

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [October 21, 2021, 9:48am UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/48 "2021-10-21T09:48:52Z")

</div>

And the STM32duino LoRaWAN package is woefully out of date - 2017 or thereabouts …

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [October 21, 2021, 9:54am UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/49 "2021-10-21T09:54:45Z")

</div>

@PhantomSystems @ELPIDOFOROSANSTASIOU

Are you aware of T-Motion [USB\_Driver\_Doc.pdf](https://github.com/Xinyuan-LilyGO/LilyGO-T-Motion/raw/master/USB_Driver_Doc.pdf) ?

_Will probably help to enable upload over USB and/or Serial over USB for serial monitor._

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [October 21, 2021, 10:10am UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/50 "2021-10-21T10:10:25Z")

</div>

> [@descartes](#):
>
> And the STM32duino LoRaWAN package is woefully out of date - 2017 or thereabouts

What package are you referring to? This library?: [I-NUCLEO-LRWAN1](https://github.com/stm32duino/I-NUCLEO-LRWAN1)

[Arduino Core STM32](https://github.com/stm32duino/Arduino_Core_STM32) does not have a LoRaWAN package (integrated). You can use the MCCI LMIC library instead.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [October 21, 2021, 10:30am UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/51 "2021-10-21T10:30:44Z")

</div>

> [@bluejedi](#):
>
> What package are you referring to? This library?: [I-NUCLEO-LRWAN1](https://github.com/stm32duino/I-NUCLEO-LRWAN1)

Yes

> [@bluejedi](#):
>
> [Arduino Core STM32](https://github.com/stm32duino/Arduino_Core_STM32) does not have a LoRaWAN package.

But but but … … it’s in the STM32duino section - how can that not be for the STM32duino / Arduino Core for STM32 board support???

Personally I’d go with a variant of the Tlera library or, as at present, the code-splat that is the official STM32 LRWAN1 Cube code base.

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [October 21, 2021, 10:45am UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/52 "2021-10-21T10:45:52Z")

</div>

> [@descartes](#):
>
> how can that not be for the STM32duino / Arduino Core for STM32 board support?

This was in response to

> [@descartes](#):
>
> package is woefully out of date - 2017 or thereabouts

  

> [@descartes](#):
>
> Personally I’d go with a variant of the Tlera library

Good suggestion!  
The S76G contains STM32L073 which is supported by @GrumpyOldPizza’s Arduino core. It has LoRaWAN support integrated based on Semtech’s LoRaMAC-node.  
It has no BSP for the T-Motion so (some) standard Arduino pin definitions _may/will_ be incorrect (use pin numbers instead).

The Arduino Core for STM32L0 based boards can be found here:

> **[GitHub - GrumpyOldPizza/ArduinoCore-stm32l0: Arduino Core for STM32L0](https://github.com/GrumpyOldPizza/ArduinoCore-stm32l0)**
>
> Arduino Core for STM32L0

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [October 21, 2021, 10:50am UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/53 "2021-10-21T10:50:05Z")

</div>

The Tlera library isn’t terribly up to date either but I know it works on the STM32 B-L072Z board aka the Murata module on TTS CE as I tried it recently.

---

<div class="post-metadata">

**Author:** ![GrumpyOldPizza](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/grumpyoldpizza/32/44891_2.png) [@GrumpyOldPizza](https://www.thethingsnetwork.org/forum/u/GrumpyOldPizza)\
**Post date:** [October 21, 2021, 12:05pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/54 "2021-10-21T12:05:56Z")

</div>

Yeah, I know, ArduinoCore-stm32l0 needs to be updated to LoRaWAN 1.0.4 (aka LoRaMac-node 4.5.2), and all the work that had been done in ArduinoCore-stm32wb has to be backported …

Why not with with stm32duino … loaded question. In general to do LoRaWAN properly (not just a quick hack, quick proof of concept) you need a lot more internal structures than typical Arduino Cores supply. Doing strict timing without proper RTC code and multiple IPLs for ISRs I do find always lacking substantially. LMIC is nice, but you end up with a suboptimial solution, that is a tad convoluted. Just my 2 cents.

I have to admit that ArduinoCore-stm32l0 is kind of tied to TypeABZ from muRata. Turns out that this chip/module is simply the sweet spot. I might add Type1SJ support and perhaps S76G … Does anybody have by chance the full docs for the CXD5603GF GNSS chip used on latter one ?

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [October 21, 2021, 12:15pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/55 "2021-10-21T12:15:14Z")

</div>

> [@GrumpyOldPizza](#):
>
> perhaps S76G … Does anybody have by chance the full docs for the CXD5603GF GNSS chip used on latter one

Like this?: [CXD5603GF\_UsersManual\_E\_013](https://github.com/Xinyuan-LilyGO/LilyGO-T-Motion/blob/master/datasheet/CXD5603GF_UsersManual_E_013_TianQin.pdf)

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [October 21, 2021, 12:54pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/56 "2021-10-21T12:54:42Z")

</div>

> [@GrumpyOldPizza](#):
>
> Yeah, I know, ArduinoCore-stm32l0 needs to be updated to LoRaWAN 1.0.4 (aka LoRaMac-node 4.5.2), and all the work that had been done in ArduinoCore-stm32wb has to be backported …

I’m in the throes of a STM32 LRWAN1 project on Murata so my head is firmly in the groove on this so happy to help, maybe, am I mad - the STM32 code base is spaghetti! When I looked at your BSP I figured that some serious midnight oil must have been burnt to get it all nicely packaged and totally not surprised that it’s been left - but it works as is right now.

---

<div class="post-metadata">

**Author:** ![GrumpyOldPizza](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/grumpyoldpizza/32/44891_2.png) [@GrumpyOldPizza](https://www.thethingsnetwork.org/forum/u/GrumpyOldPizza)\
**Post date:** [October 21, 2021, 1:51pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/57 "2021-10-21T13:51:01Z")

</div>

Yeah, it works, so why fix it 😉 You got the idea there. To be honest somewhere along the line LoRaMac-node added some convoluted way to save state into EEPROM … and they seriously botched that one. 4.5.2 fixed most of that last minute, so there is now a good incentive to move to a new code base. But that’s perhaps more than just an afternoons work, as you probably figured out.

---

<div class="post-metadata">

**Author:** ![PhantomSystems](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/phantomsystems/32/35697_2.png) [@PhantomSystems](https://www.thethingsnetwork.org/forum/u/PhantomSystems)\
**Post date:** [October 21, 2021, 2:15pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/58 "2021-10-21T14:15:39Z")

</div>

I was not aware of this doc. I simply use the external ST-Link programmer.  
BTW - The AcSip S76G is now End-of-Life so good luck getting any support on it.  
 ![T-Motion STLink FTDI USB](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/0/80571443c2eb9ad09f489724276d5df832214428.jpeg)

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [October 21, 2021, 3:06pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/59 "2021-10-21T15:06:57Z")

</div>

> [@PhantomSystems](#):
>
> The AcSip S76G is now End-of-Life

Do you have a source for this? AcSIP S76G [product page](http://www.acsip.com.tw/index.php?action=products-detail&fid1=19&fid2=&fid3=&id=79) at least does not mention this.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [October 21, 2021, 3:09pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/60 "2021-10-21T15:09:58Z")

</div>

> [@GrumpyOldPizza](#):
>
> To be honest somewhere along the line LoRaMac-node added some convoluted way to save state into EEPROM … and they seriously botched that one.

Yeah, they know - I told Miguel Luis aka mluis that there is a difference between Corporate Headquarters and the bottom of the coal mine where we were at:

> [@LoRaWAN 1.1 devNonce must be stored in a non-volatile memory on end device](https://www.thethingsnetwork.org/forum/t/lorawan-1-1-devnonce-must-be-stored-in-a-non-volatile-memory-on-end-device/48995):
>
> According to the LoRaWAN 1.1 specification, the end device generates the DevNonce which is a 2-byte counter, starting at 0 when the device is initially powered up and incremented with every join-request. The DevNonce value is used to prevent replay attacks. This means a DevNonce value will never be reused and therefore an end-device must store the DevNonce in a non-volatile memory. Question: Must an end device supporting LoRaWAN 1.1 have a non-volatile memory to store the DevNonce? Note: Unf…

But still, would be good to get 4.5.2 going as it is an inflection point. I’ll have another look one rainy afternoon (most of them at this time of year).

---

<div class="post-metadata">

**Author:** ![PhantomSystems](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/phantomsystems/32/35697_2.png) [@PhantomSystems](https://www.thethingsnetwork.org/forum/u/PhantomSystems)\
**Post date:** [October 21, 2021, 3:50pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/61 "2021-10-21T15:50:51Z")

</div>

[https://techship.com/products/acsip-lorawan-gps-sip-module-s76g/](https://techship.com/products/acsip-lorawan-gps-sip-module-s76g/)

---

<div class="post-metadata">

**Author:** ![ELPIDOFOROSANSTASIOU](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/elpidoforosanstasiou/32/35697_2.png) [@ELPIDOFOROSANSTASIOU](https://www.thethingsnetwork.org/forum/u/ELPIDOFOROSANSTASIOU)\
**Post date:** [October 22, 2021, 4:49am UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/62 "2021-10-22T04:49:03Z")

</div>

So after all this 🙂 i am donating all 4 boards if anyone wants them PM me , i dont think i will ever be able to make them work and to be honest i think that TTN tutorial should be somehow fixed because its really missleading compared to other other tutorials that all most all of them work with some basic knowledge. So if anyone wants the boards please text me .

Also if you can recommend me any other boards that are easy to program and include gps+lora+sensors around 25 -30 dollars please do

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [October 22, 2021, 9:47am UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/63 "2021-10-22T09:47:00Z")

</div>

> [@ELPIDOFOROSANSTASIOU](#):
>
> i think that TTN tutorial should be somehow fixed because its really missleading

**The GitHub repro you linked to is not a “TTN tutorial”** It was created by a third party who happened to be using TTN. It’s not even a tutorial, more a set of notes on how they created a device and due to the complex nature of both the hardware & firmware, would require a reasonable amount of knowledge to make work.

LoRa+GPS at the $25-30 price point isn’t common. You may wish to look at the TTGO T-Beam which is where that code base came from and is supported by LMIC-node and many other projects that use the ESP32 as the main MCU. Make sure you get a v1.1 board. In the UK Amazon have them, so I’d expect the EU network of Amazon should be able to supply.

Starting over is what I recommended - it will give you the chance to buy something that works - so please please find something but before you buy, check in on here that it is suitable and only buy one or two until you are happy you have something working.

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [October 22, 2021, 10:56am UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/64 "2021-10-22T10:56:55Z")

</div>

> [@ELPIDOFOROSANSTASIOU](#):
>
> Also if you can recommend me any other boards that are easy to program and include gps+lora+sensors around 25 -30 dollars please do

On many LoRa dev boards with GPS you will not find sensors, but these of course can be attached externally.

If this is a first device to build up experience with LoRaWAN then getting a device with good community support will be important.

To prevent disappointments and unpleasant surprises it will be useful to clearly define your current goals and corresponding requirements. This will also help others give you better suggestions for which boards are more suitable and which are not.  
As for boards with onboard GPS, there are not that many LoRa dev boards with GPS to choose from.

Some possible requirements are:

- What development framework do you want to use? Do you want to use the Arduino framework (ease of use) or do you want to use some other specific framework you are already familiar with, or don’t care and just want the best hardware for your application (and take any possible related steep learning curves for granted)?

- If ease of use for development is important or not, e.g. do you prefer that it has USB that can be used for firmware uploading, serial monitoring/‘debugging’ and powering the device (e.g. for education/classroom training) so you only need a single cable.

- Do you want to be able to do hardware (supported) debugging via e.g. SWD or JTAG interface?

- Do you prefer to have onboard display?

- Do you prefer to have onboard (SMA) antenna connector instead of a (tiny IPEX/UFL) antenna _cable_ connector so the antenna is mounted directly to the board?

- Do you prefer to have onboard GPS antenna?

- Is it important that the device can be battery operated over long(er) time?  
(_Must it be low-power and battery-friendly?)_

- Do you need/prefer onboard battery holder?  
_(This will drastically limit the selection though.)_

Be aware that there is no ‘one size fits all’ solution, no board can satisfy all requirments. It is therefore important to define your current requirements and which are the most important.

---

<div class="post-metadata">

**Author:** ![ELPIDOFOROSANSTASIOU](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/elpidoforosanstasiou/32/35697_2.png) [@ELPIDOFOROSANSTASIOU](https://www.thethingsnetwork.org/forum/u/ELPIDOFOROSANSTASIOU)\
**Post date:** [October 22, 2021, 6:12pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/65 "2021-10-22T18:12:32Z")

</div>

> [@bluejedi](#):
>
> - What development framework do you want to use? Do you want to use the Arduino framework (ease of use) or do you want to use some other specific framework you are already familiar with, or don’t care and just want the best hardware for your application (and take any possible related steep learning curves for granted)?
> - If ease of use for development is important or not, e.g. do you prefer that it has USB that can be used for firmware uploading, serial monitoring/‘debugging’ and powering the device (e.g. for education/classroom training) so you only need a single cable.
> - Do you want to be able to do hardware (supported) debugging via e.g. SWD or JTAG interface?
> - Do you prefer to have onboard display?
> - Do you prefer to have onboard (SMA) antenna connector instead of a (tiny IPEX/UFL) antenna _cable_ connector so the antenna is mounted directly to the board?
> - Do you prefer to have onboard GPS antenna?
> - Is it important that the device can be battery operated over long(er) time?  
> (_Must it be low-power and battery-friendly?)_
> - Do you need/prefer onboard battery holder?  
> _(This will drastically limit the selection though.)_

Hello i will like to buy the closest board to RAK Trio i use that for all my project but now its not available to buy so i am looking something similar and lightweight with ipex connectors

 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/8/d8e5ea59a7deba0653079190d0737546563e6537.jpeg)

---

<div class="post-metadata">

**Author:** ![PhantomSystems](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/phantomsystems/32/35697_2.png) [@PhantomSystems](https://www.thethingsnetwork.org/forum/u/PhantomSystems)\
**Post date:** [October 23, 2021, 6:17pm UTC](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482/66 "2021-10-23T18:17:21Z")

</div>

Hey Marios, Before you give up on this, let’s talk offline and maybe we can get you up and running. Otherwise I also have some alternate suggestions for Lora+GPS.  
Russ…

[Previous page](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482.md?page=2)

[Next page](https://www.thethingsnetwork.org/forum/t/lilygo-ttgo-t-motion-no-serial-output-no-ttn-packets/38482.md?page=4)
