Giter Club home page Giter Club logo

Comments (13)

mo-norant avatar mo-norant commented on June 18, 2024

otaa is not working
only get the activation frames

from lora-ttnmapper-t-beam.

vincegre avatar vincegre commented on June 18, 2024

otaa is not working
only get the activation frames

so have to use only the ABP mode ? but i'll work in this way properly with v 1.1 of the board ? Thanks

from lora-ttnmapper-t-beam.

vincegre avatar vincegre commented on June 18, 2024

Hum oki tested on my v1.1 board but it doesn't work at all (never joins the TTN network unless I'm in a covered area) and the OLED display is not working too :(

from lora-ttnmapper-t-beam.

DeuxVis avatar DeuxVis commented on June 18, 2024

The oled display is an option of the newest boards and is not supported at the moment.

There is some code I need to change to support version V1.1 - and V1.0 - for instance the pinout of the GPS serial port changed - see https://github.com/Xinyuan-LilyGO/LilyGO-T-Beam#Pinout

from lora-ttnmapper-t-beam.

ianziot avatar ianziot commented on June 18, 2024

Hi .. I too was getting 'No gps Fix' on the serial monitor using two different T-Beam V1.1 units.

I had changed the TX and RX pin numbers in gps.h as suggested although there are two versions floating around. I have settled on (below) as being the correct version for the V1.1 T-Beam.

image

I then decided that noppingen was probably right in issue #19 suggesting that I needed to add the code that supported the AXP192 programmable power supply that is fitted to the V1.1 T-Beam. So I added that code as described.

All I can say is that installing that code led me down a rabbit hole from whence I have only just re-emerged after several days.

I had managed to locate a version of the AXP20x library at this github site. https://github.com/lixy123/TTGO_T_Watch_Baidu/ but turns out that this version of the library does not work with this sketch. After a further search I found another version from the same author (lewis he) and that works fine. It compiles without errors and my gps now gets a fix after about 1 minute or so if I am outdoors. (no fix indoors) . I also noticed that the blue 'chg' led flashes now, whereas it did not before.

The correct AXP20X library can be found at https://github.com/lewisxhe/AXP202X_Library

The instructions from noppingen are repeated below:

Quick fix for v1.0 (v10) board:

In gps.h change the GPIOs for GPS to the changed ones, 12 & 34:

#define GPS_TX 34
#define GPS_RX 12

In the main .ino file add support for the AXP20X power controller to switch on the voltages: After

#include <esp_sleep.h>

add

#include "axp20x.h"
AXP20X_Class axp;

and initialise / switch on the power controller in setup() right after

Serial.println(F("TTN Mapper"));

by adding:

/* Start power controller */
Wire.begin(21, 22);
Serial.println("Starting AXP192 power controller");
if (!axp.begin(Wire, AXP192_SLAVE_ADDRESS)) {
Serial.println("AXP192 started");
} else {
Serial.println("AXP192 failed");
}
axp.setPowerOutPut(AXP192_LDO2, AXP202_ON); // Lora on T-Beam V1.0
axp.setPowerOutPut(AXP192_LDO3, AXP202_ON); // Gps on T-Beam V1.0
axp.setPowerOutPut(AXP192_DCDC2, AXP202_ON);
axp.setPowerOutPut(AXP192_EXTEN, AXP202_ON);
axp.setPowerOutPut(AXP192_DCDC1, AXP202_ON); // OLED on T-Beam v1.0
axp.setDCDC1Voltage(3300);
axp.setChgLEDMode(AXP20X_LED_BLINK_1HZ);
axp.adc1Enable(AXP202_BATT_CUR_ADC1, 1);

Cheers
Ian

from lora-ttnmapper-t-beam.

ianziot avatar ianziot commented on June 18, 2024

Warning: The pin out for a T-Beam T22_V1.1 as shown at https://github.com/Xinyuan-LilyGO/LilyGO-T-Beam#Pinout appears to be incorrect for the GPS_RX_PIN and GPS_TX_PIN settings. The image immediately below is incorrect. TX 12 and RX 34

image

The correct settings, at least for my T22_V1.1 board with a Neo 6M GPS module is shown below: TX 34 and RX 12

image

from lora-ttnmapper-t-beam.

vincegre avatar vincegre commented on June 18, 2024

Hum looks like you have similar issues than me, still killing my head to succeed to get that board to join TTN :-1:

from lora-ttnmapper-t-beam.

DatanoiseTV avatar DatanoiseTV commented on June 18, 2024

Any news on getting the v1.1 up and running?

from lora-ttnmapper-t-beam.

David-2D3FE9 avatar David-2D3FE9 commented on June 18, 2024

It works for my T-Beam V1.1,

I used the same setting than @ianziot
#define GPS_TX 34
#define GPS_RX 12

I was initially confused because for some unknown reason I had to wait near of 10 minutes before getting a GPS Fix.
(A previous TinyGPS++ example gaves me a fix in seconds, so i thought there was a problem)
Actually no, I just had to go get a coffee ...

I joined TTN application over APB.
(will try OTAA later after understanding payload and some piece of code)

from lora-ttnmapper-t-beam.

AndreGeddert avatar AndreGeddert commented on June 18, 2024

I was initially confused because for some unknown reason I had to wait near of 10 minutes before getting a GPS Fix.

in gps.cpp uncomment the debug-println's at the end of the file. So you can see why your fix is taking so long.

from lora-ttnmapper-t-beam.

David-2D3FE9 avatar David-2D3FE9 commented on June 18, 2024

Thanks for you help
I will try this to know why getting a fix it is not constant on my device
But globaly it works well

I was also able to use OTAA and I can go outside to begin a coverage test at SF7 of my GW.

from lora-ttnmapper-t-beam.

AndreGeddert avatar AndreGeddert commented on June 18, 2024

Did you use any trick to get OTAA working?

from lora-ttnmapper-t-beam.

David-2D3FE9 avatar David-2D3FE9 commented on June 18, 2024

No,
My first attempt was unsuccessful,
But it was my fault: i maked a big mess by confusing key, msb/lsb (first day with esp32, lora, TTN, GTW...)

So i went back, tried LMIC library example with APB, then OTAA, that worked,
then I switched on TTN mapper and it worked directly.

The only problem is that sometime the connection is blocked on "EV_JOINING".
It appens around 1 time on 10 at power up (but don't appens after (when sleep/wakeup)
As i have an oled for this coverage test i can see this and power cycle it

from lora-ttnmapper-t-beam.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.