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

Hello,

I recently received my LilyGO TTGO T-Motion (no display).

Next, I flashed the tracker firmware on it.

Unfortunately, my ttn device overview reports “never seen” as status. I did configure the node with ABP (NSK/ASK/Device address in msb format).
I also tried OTAA, but this also didn’t work.

I tried debugging the device via serial, but unfortunately there’s no serial output. I tried the arduino ide serial monitor with 115200 baud and also screen /dev/ttyACM0 115200 on my linux system.

I also flashed POST_S76G for further debugging, but using this there’s also no serial output.

Any ideas on how to go forward with this are highly appreciated!

Can you try another computer?

And just in case there is some mismatch between the device & your computer, a known issue with ATmega Arduinos, may be the case here, lower the baud rate right down - line 59 of configuration.h - wouldn’t hurt to start at 9600.

Hello,
For the life of me, I cannot get this tracker to load on my T-Motion board. I’ve blown away my entire Arduino software and re-installed, followed the directions exactly and this is what I get:

WARNING: library esp8266-oled-ssd1306-master claims to run on esp8266, esp32 architecture(s) and may be incompatible with your current board which runs on stm32 architecture(s).

C:\Users\user\Documents\Arduino\libraries\arduino-lmic-master\src\hal\getpinmap_thisboard.cpp: In function ‘const Arduino_LMIC::HalPinmap_t* Arduino_LMIC::GetPinmap_ThisBoard()’:
C:\Users\user\Documents\Arduino\libraries\arduino-lmic-master\src\hal\getpinmap_thisboard.cpp:69:72: note: #pragma message: Board not supported – use an explicit pinmap
69 | #pragma message(“Board not supported – use an explicit pinmap”)
| ^
Sketch uses 93352 bytes (47%) of program storage space. Maximum is 196608 bytes.
Global variables use 5396 bytes (26%) of dynamic memory, leaving 15084 bytes for local variables. Maximum is 20480 bytes.
-------------------------------------------------------------------
STM32CubeProgrammer v2.5.0
-------------------------------------------------------------------
Error: Target device not found
Establishing connection with the device failed

BTW: The sketch takes forever to compile.
Thanks for any help.

Which directions exactly have you followed exactly?

Where did the ESP bits come in to the equation - which board have you got selected in the Arduino IDE?

Which Arduino LMIC library - link to repro + version?

Have you setup the pin map?

Have you tried the simplest sketch possible - a Blinky or similar - to debug the CubeProgrammer?

How long is forever?

Thanks for the response descartes.

Which directions exactly have you followed exactly?

Where did the ESP bits come in to the equation - which board have you got selected in the Arduino IDE?
The Tracker instructions specify the ThingPulse esp8266-oled-ssd1306 library.
Board -> Nucleo_64
Board part number -> Nucleo L073RZ

Which Arduino LMIC library - link to repro + version?
MCCI LoRaWAN LMIC Library - version 3.3.0
(https://github.com/mcci-catena/arduino-lmic)

Have you setup the pin map?
I see the line that generates the #pragma error in hal.cpp, but there are no options for this board.

Have you tried the simplest sketch possible - a Blinky or similar - to debug the CubeProgrammer?
I.tried a simple sketch with no luck. I get the same timeout when I try to access the board using STM32CubeProg.

How long is forever?
20 minutes or longer.

[UPDATE] Just a quick note - I’ve been able to successfully install the SoftRF software built from source.

The instruction don’t mention this (and I should’ve thought of it sooner), but you must use an ST-Link interface to download/debug software to the T-Motion and it must be connected to PA13 and PA14. Also, the factory default firmware uses PA10 and PA11 for UART ops, not the USB port.

Good to hear you got your TTGO working in some way shape or form.

For the benefit of others, SoftRF is for listening to aviation locator transmission and relaying them over Wifi - so not a LoRaWAN or TTN topic

There is a TTN component to the SoftRF package which can be used in automotive tracking. It’s disabled by default for avionics implementations.
Thanks for your help.

Hey @PhantomSystems , how did you set up the TTNHelper component? I am sadly getting compilation errors after enabling the TTN component in the SoftRF.h file since the TTNHelper.cpp references some files that seem to have been renamed and changed. Would love to hear how you got it working!

AnixeHD, I had no luck with the SoftRF project so I wound up using the ttgo-tmotion-ttn-tracker and these Arduino libraries:
arduino-lmic version 1.5.0
TinyGPSPlus version 1.0.0
Wire version 1.0
U8g2 version 2.28.10
SPI version 1.0
SrcWrapper version 1.0.1
Let me know if you get SoftRF working or need more info.

Hi PhantomSystems,
I’m not sure if I understand you correctly. I have the same problem and warning but the code of the tracker firmware is transferred to the t-motion stick over the USB connection (under Windows, with Linux the stick was not found). But my OLED display does not work. SoftRF was installed on the stick at delivery and the display function was fine. You used an interface to transfer the program code?