kizniche / ttgo-tbeam-ttn-tracker

TTGO T-Beam Tracker for TTN Mapper and TTN Tracker using US (915 MHz) and EU (868 MHz) frequencies
https://kylegabriel.com/projects/2019/04/lorawan-tracker-and-mapper.html
GNU General Public License v3.0
265 stars 139 forks source link

Lora not joining #6

Closed netmonk closed 4 years ago

netmonk commented 4 years ago

I freshly installed an compiled this code on my Tbeam rev10 (latest). I already run on this device paxcounter with success to join lora TTN. I run also the GW, so i can see what message are transiting from it.

I put the appeui lsb, deveui lsb and appkey msb, i cannot see any join in the gateway. This is for EU version standard payload.

netmonk commented 4 years ago

first, the LED_PIN is set to 14, but it is also the Gpio for lora RST on rev10 so i i changed it to unused GPIO, but still nothing goes out from the board. Also if you look at the datasheet, rev10 only DIO0, and DIO1 and DIO2 are not defined. So tried to change them to LMIC_UNUSED_PIN in ttn.ino but no success.

netmonk commented 4 years ago
// -----------------------------------------------------------------------------
// LoRa SPI
// -----------------------------------------------------------------------------

#define SCK_GPIO        5
#define MISO_GPIO       19
#define MOSI_GPIO       27
#define NSS_GPIO        18
#define RESET_GPIO      14
#define DIO0_GPIO       26
#define DIO1_GPIO       33
#define DIO2_GPIO       32

first attempt to correct the pinout

kizniche commented 4 years ago

I just got the rev10 board, but I haven't had a chance to plug it in and mess with it. Let me know if you find or fix anything in your investigation.

Internetwurm commented 4 years ago

https://github.com/kizniche/ttgo-tbeam-ttn-tracker/issues/8

maybe you take a look here ;-)

micbuh commented 4 years ago

if not set to single channel gateway, LMIC_startJoining() will never be executed.

_LMICstartJoining(); should be before _#ifdef SINGLE_CHANNELGATEWAY.

ttn.ino

#elif defined(USE_OTAA)

  #ifdef SINGLE_CHANNEL_GATEWAY
  // Make LMiC initialize the default channels, choose a channel, and
  // schedule the OTAA join
  LMIC_startJoining();

  // LMiC will already have decided to send on one of the 3 default
  // channels; ensure it uses the one we want
  LMIC.txChnl = SINGLE_CHANNEL_GATEWAY;
  #endif
#endif
kizniche commented 4 years ago

Thanks for the info. I'm going to try to get back into this in 2 weeks when I have more time and try to test and incorporate changes.