Open vincegre opened 4 years ago
otaa is not working only get the activation frames
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
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 :(
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
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.
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:
In the main .ino file add support for the AXP20X power controller to switch on the voltages: After
add
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
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
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
Hum looks like you have similar issues than me, still killing my head to succeed to get that board to join TTN :-1:
Any news on getting the v1.1 up and running?
It works for my T-Beam V1.1,
I used the same setting than @ianziot
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)
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.
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.
Did you use any trick to get OTAA working?
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
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