Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatible with board 1.1 ?? #21

Open
vincegre opened this issue Aug 6, 2020 · 13 comments
Open

Compatible with board 1.1 ?? #21

vincegre opened this issue Aug 6, 2020 · 13 comments

Comments

@vincegre
Copy link

vincegre commented Aug 6, 2020

Hi

I have the 1.1 version of that board and I'd like to use your sketch on it. Is it compatible ? or need some tweaks to get it working properly ?

Thanks

Vincèn

@mo-norant
Copy link

otaa is not working
only get the activation frames

@vincegre
Copy link
Author

vincegre commented Aug 8, 2020

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

@vincegre
Copy link
Author

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 :(

@DeuxVis
Copy link
Owner

DeuxVis commented Aug 11, 2020

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

@ianziot
Copy link

ianziot commented Aug 14, 2020

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

@ianziot
Copy link

ianziot commented Aug 15, 2020

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

@vincegre
Copy link
Author

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

@DatanoiseTV
Copy link

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

@David-2D3FE9
Copy link

David-2D3FE9 commented Apr 10, 2021

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)

@AndreGeddert
Copy link

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.

@David-2D3FE9
Copy link

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.

@AndreGeddert
Copy link

Did you use any trick to get OTAA working?

@David-2D3FE9
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants