Hi guys.
I past last few days trying to configure ttgo t-beam to work with TTN and Dragino LG02.
After a lot of work hours, I got it working uplink.
I used this to start: https://github.com/matthijskooijman/arduino-lmic/blob/master/examples/ttn-abp/ttn-abp.ino
How title says, I’m using 915, but if I just config 915hz, my t-beam won’t communicate with dragino.
So, I made some changes in .ino.
I’m using CFG_EU_868, but setting freq to 915:
#if defined(CFG_eu868) // EU channel setup
Serial.println("CFG_EU868");
// Set up the channel used by the Things Network and compatible with
// our gateway.
// Setting up channels should happen after LMIC_setSession, as that
// configures the minimal channel set.
LMIC_setupChannel(0, 915525000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_CENTI); // g-band
LMIC_setupChannel(1, 923300000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_CENTI); // g-band
#
And in Dragino I configured:
This works to uplink, but I really need downlink to made a remote action…
Debbuggng my dragino, I find downlink response from TTN:
{"txpk":{"imme":false,"tmst":1272528458,"freq":923.3,"rfch":0,"powe":20,"modu":"LORA","datr":"SF12BW500","codr":"4/5","ipol":true,"size":33,"ncrc":true,"data":"oPMYAiaKAAADQAIAcQM1AP8BATBGIrf5sRu5E7u41X/U"}}
So, Its returning SF12 in 923.3, then I configured this in my dragino like print to TX.
I tried follow some tutorials, but unique example code that I find is PAXBT that some users in this forum used.
My t-beam console:
Packet queued
58455130: EV_TXCOMPLETE (includes waiting for RX windows)
Can someone help me configure downlink? Thanks.