Ttgo T-beam


(Ori) #95

Not good for the Lora antenna then…


#96

That is unrelated to the LoRa antenna (or at least as much related as the on-board Wifi/BT antenna).


(Ori) #97

Any luck/update with regards to the GPS and sleep mode?


(Bercman) #100

Hello!

I’m new to the LoRaWAN and TTN community.

I’ve been trying to get my TTGO T-Beam to work (connect to TTN) for several days now, but have had no success whatsoever.

What I’ve tried so far:

  • Downloaded LMIC library and tried out the following pinout settings according to the best TTGO T-Beam pinout information I’ve found so far (incl. soldering LoRa1 to pin 33 and LoRa2 to pin 32 on the board itself):

const lmic_pinmap lmic_pins = {
.nss = 18, // LoRa chip select on ttgo t-beam
.rxtx = LMIC_UNUSED_PIN,
.rst = LMIC_UNUSED_PIN, // Not required
.dio = {26, 33, 32}, // To LoRa DIO0 (interrupt), To LoRa DIO1 (interrupt) & To LoRa DIO2 (interrupt)
};

  • Updated SPI settings in hal.cpp according to the correct SPI pinout:

static void hal_spi_init () {
// SPI.begin();
SPI.begin(5,19,27); // These specific pins are for TTGO T-Beam only!
}

  • Tested LMIC AGP example, paying very close attention to little- and big-endian formats. This is what I see (no joining feedback, the last lines just repeat after every 60 seconds as defined):
    Baud rate 115200

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:928
ho 0 tail 12 room 4
load:0x40078000,len:9280
load:0x40080400,len:5848
entry 0x40080698
Starting
11124: EV_TXSTART
Packet queued
206222: EV_TXCOMPLETE (includes waiting for RX windows)

  • Tested LMIC OTAA example, paying very close attention to little- and big-endian formats. This is what I see:
    Baud rate 9600 (the last lines just repeat)

⸮as⸮⸮J&&⸮SY
Packet queued
4918: EV_JOINING
4937: EV_TXSTART
414734: EV_TXSTART
843576: EV_TXSTART
1302692: EV_TXSTART
2665242: EV_TXSTART

  • OTAA example. Baud rate 115200

ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:928
ho 0 tail 12 room 4
load:0x40078000,len:9280
load:0x40080400,len:5848
entry 0x40080698

  • Peeled off the LoRa module sticker to make sure I do not have the 433 MHz LoRa module as I did have with other LoRa modules I failed with as I live in Europe. Although it is not the 433 MHz module, I found HPD13A-915 written on top of the module. Knowing that the TTGO T-Beam advertises itself to be compatible with 868 MHz and 915 MHz at the same time (?!), might this prove to be a problem? I do have to admit I’m too novice in this to make sure, so any feedback on this would be fantastic.

Going through numerous topics on TTGO T-Beam and different examples, the board itself works and I’ve managed to upload code onto it, but I cannot seem to connect with the TTN. Any help or extra questions to give input to would be greatly appreciated!

PS. I am using The Things Gateway for testing.

Thanks!
-Tarvo.


#101

see


(Verkehrsrot) #102

If you have the older TTGO T-Beam Version you need to wire Lora Pin DIO1 to CPU.

You can also check paxcounter software which comes with tailored settings for TTGO T-Beam, perhaps it works on your’s. If yes, you know that you did something wrong.


(Bercman) #103

Thanks for the tip. Could You please elaborate to where I would have to wire the LoRa DIO1 in case I need to?
I’ve had a look at the Paxcounter before, but haven’t really tried uploading it to the T-Beam that as it seemed a bit too complex code to begin my exploration with, but I will try it out. Hopefully it reveal something. :slight_smile:

EDIT: Paxcounter works fine, I was able to connect to TTN and forward data. So what mightbe up with the previous codes? :confused:


(Deux Vis) #104

Well first make sure you have a version which needs the wiring.

Can you find any version marking on the board ? Please copy it here.

Later : I just saw your edit. You definitely do not need more wiring if paxcounter works.


(Verkehrsrot) #105

Double-check your pinout and your keys.

Pinout of TTGO-Tbeam can be found here:


(Shadowkane) #106

i’m not sure if this is the right place to post my question about TTGO T beam. It’s my first ESP board and my very first project with ESP and lora. my question is simple, can i use my board without battery, just power it on using only USB (connected to PC). I already tried that because i though it’s fine, like almost every single board in the market has an USB port for power and programming, but the moment i turn the switch on i heard some noise.i’m not sure if the noise is from Lora component or not but i think it is, so i just turned off.


#108

why not


(Shadowkane) #109

“why not”
it’s the same though i had in mind when i was buying the board. if i can charge the battery from usb it means the usb can power the system on, which mean no need for battery if i want to work inside. but as i said, when i tried that, i heard some noise. (like a charger when it makes a low noise. i don’t know if you heard that before or not) but not a loud noise just noticeable.


#110

interesting… and does it work :sunglasses:


#111

The noise goes away as soon as you put a rechargeable 18650 battery in.


(Verkehrsrot) #112

Same here.


#113

what component makes that noise… inductor ?


(Mark D) #114

A switching power supply may make some sound if the load is too low, as the switching frequency may drop. I’d just put a battery in it, there’s no good reason not to do so that I can think of.


(Shadowkane) #115

the sound was from the LORA component. and using a battery as a solution, the thing is, i need time to go and buy it. (i can’t just order it online and electronic shops are not close :pensive: ) and i want to test the board as soon as possible. if the sound is not an indication or warning for any problem then i can work with it. i just don’t want to see my board get in fire.


(Verkehrsrot) #116

The sound ist not from the LoRa chip imho, and with battery connected it reappears as soon as the battery is fully charged.


(Shadowkane) #117

so, what causes that sound? and is it safe to work without battery?