Code Monkey home page Code Monkey logo

Comments (8)

JackGruber avatar JackGruber commented on June 18, 2024

Could you post a complet output from the console.
On 915 Mhz is my workaround for the DutyCycle not working. Possible this is also on AS923.

from esp32_ttn_environmental_sensor.

kevin192291 avatar kevin192291 commented on June 18, 2024

Thanks for that really fast reply!
Here is a fully cycle of the output:

225664: EV_TXSTART
Runtime: 5 seconds
590524: EV_JOINED
netid: 0
devaddr: 192AFFB
artKey: C7BAF96796914A372ABBA1D5503324
nwkKey: A54B14134193F8289C669DF7974D8D
590547: EV_TXCOMPLETE
Go to DeepSleep ...
Runtime was: 9 seconds
Save LMIC to RTC ...
0


LMIC.opmode: 
LMIC.seqnoUp = 0
LMIC.globalDutyRate = 0 osTicks, 0 sec
LMIC.globalDutyAvail = 0 osTicks, 0 sec
LMICbandplan_nextTx = 590517 osTicks, 9 sec
os_getTime = 591976 osTicks, 9 sec
LMIC.txend = 590517
LMIC.txChnl = 4
Band 	avail 		avail_sec	lastchnl 	txcap
0	0		0		0		0
1	0		0		4		100
2	0		0		0		0
3	0		0		0		0




I am not sure if that helps at all. That is what I am seeing in my serial out.

from esp32_ttn_environmental_sensor.

JackGruber avatar JackGruber commented on June 18, 2024

Hm ...
Join is ok and a msg was send. Then a seqnoUp of 1 should be saved ...
But in the output the seqnoUp is 0 and the EV_TXCOMPLETE event says data was send.
Could you try the code from https://github.com/JackGruber/ESP32-LMIC-DeepSleep-example only for testing the DeepSleep

from esp32_ttn_environmental_sensor.

kevin192291 avatar kevin192291 commented on June 18, 2024

Yes! Actually I have,
I got the same exact result!
Here is what I am seeing on TTN side:
tts err
but never any data
When I run the arduino-lmic example ttn-otaa it seems to take a fair amount of time between showing EV_TXCOMPLETE and the data to display in TTN console. I am wondering if the code may be going to sleep too fast?

from esp32_ttn_environmental_sensor.

JackGruber avatar JackGruber commented on June 18, 2024

Code that accesses the content of the LMIC structure may need to be modified, as some of the fields have been renamed, or rearranged.

From the LMIC changelog ...

I think the codeneed a rework to run with lmic > 3.0.99
You can try it with the version 3.0.99

from esp32_ttn_environmental_sensor.

kevin192291 avatar kevin192291 commented on June 18, 2024

Just to be clear, It is the https://github.com/mcci-catena/arduino-lmic version of the library right?
I get MAX_BANDS being missing on version 3.0.99 (if installed from the library manager) and all versions of 3.0.99.x if
I download the zips from github, also, Anything before 3.0.0 and I get missing case items such as case EV_RXSTART and case EV_JOIN_TXCOMPLETE
If there is anything I can do to assist getting this working, I would absolutely love to help. This seems really really important for LoRa nodes!!!

from esp32_ttn_environmental_sensor.

JackGruber avatar JackGruber commented on June 18, 2024

OK, I have checkt my projects.
I use the LMIC version 3.1.0, 3.2.0, but it works also fine with 3.3.0.

Just to be clear, It is the https://github.com/mcci-catena/arduino-lmic version of the library right?

Yes, I saw you have opened an issue there too.

from esp32_ttn_environmental_sensor.

kevin192291 avatar kevin192291 commented on June 18, 2024

Sounds good. I Think the issue I opened on the Arduino-lmic page may be a bit different.
I figure I will try to handle the re-join and the data sending separately. Thanks, I will keep trying on these. I appreciate the support!

from esp32_ttn_environmental_sensor.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.