There is no doubt lmic works. The trick is to find the proper version of lmic for the T-Beam.
There are a pair of local dudes using ttnmapper with T-Beams on 915 MHz here in Canada. They gave me their copy of lmic, or so they thought… It produced a compile time WARNING saying board (T-Beam) not supported. Its only a warning. The IDE compiles the program source. Running the code, it loops in an error state: board not supported.
The local dudes have lost code control. They understand they are using one version of lmic, the version they gave me. In fact their build is using a t-beam compatible version picked somewhere on their system during the build process. They are not using what they think they are using, the code they gave me. No code control.
Now the t-beam is an elegant board featuring an esp32 with WiFi, Bluetooth, a GPS, a sx1276 Lora transceiver, and li-polymer battery socket complete with associated charging circuitry. I like. I like it a lot.
I think this version is working good with my ttgo-tbeam v7 and oled display.
I search a log time for a working solution to use it with ttn mapper without paxcounter.
I want a small software for arduino ide without the interference of wifi and bluetooth.
I think the biggest problem i had is to understand that i should use ABP activation and
disable the “frame counter checks” in TTN Backend (Device section).
Alternativeley you can tweak the software to reset the counter. I think the software is generaly broken in this part because i found no software where the tracker work on the second day after flashing the keys.
But have a look at the TX intervall because of the fair frequency use policy.
I use the version of LMIC that “ships with” PlatformIO with my T-Beam. You should just need to change lmic_config.h. However, there is really no code control there either, since you are assuming whoever is in charge of the LMIC version doesn’t break it.
Thank you very much. Another doubt is: “should I modify anything in the " Lora-TTNMapper-T-Beam.ino” file in order to make ttgo t-beam work as TTN Mapper node? (I have already put in config.h file the Nwks and App keys and andress of my device.
First of all thank you for the answer. I’m from Italy so the band is the 868 Mhz. The problem I observe is that when I open the serial monitor in order to see if device is working or not, “dirty” byte are printed such as that in the figure.
After matching, the serial monitor prints: “No gps Fix” and removing the comment in the else function of https://github.com/DeuxVis/Lora-TTNMapper-T-Beam/blob/master/gps.cpp file the message in the serial monitor becomes:
No gps Fix.
location valid: 0
location age: -1
hdop valid: 1
hdop age: 549
hdop: 9999
altitude valid: 0
altitude age: -1
Finally, making the variable “bool gps::checkGpsFix()” always true the massage printed on the serial monitor is the following:
What I usually do to debug is use a battery to power up the board outside - under sky - and wait until it get a fix then move it inside. If your walls are not too thick the GPS could continue working.