Comments (11)
I've now tested it with the loop
and now works.
my script was probably too impatient beforehand.
many thanks for your help.
from dragino.
Do you mean OTAA (over the air activation) which is already implemented in the code base? Or something else, in which case feel free to implement and submit a pull request.
from dragino.
what are you needing? got an example
from dragino.
I find this conversation strange. As pjb304 said, OTAA is already supported and that is what I am using. You simply need to edit the lines at the end of the dragino.ini file:-
##Valid auth modes are ABP or OTAA
##All values are hex arrays eg devaddr = 0x01, 0x02, 0x03, 0x04
#auth_mode = "abp"
#devaddr =
#nwskey =
#appskey =
auth_mode = "otaa"
deveui =[insert your own]
appeui =[insert your own]
appkey =[insert your own]
This works for me.
from dragino.
yes I mean OTAA, I copied it incorrectly from the script.
Lines 36 to 37 in 55b56af
Die send_bytes-Methode ist nur für ABP optimiert und ich habe keine andere für OTAA gefunden.
Lines 195 to 201 in 55b56af
from dragino.
##Valid auth modes are ABP or OTAA
##All values are hex arrays eg devaddr = 0x01, 0x02, 0x03, 0x04
#auth_mode = "abp"
#devaddr =
#nwskey =
#appskey =auth_mode = "otaa"
deveui =[insert your own]
appeui =[insert your own]
appkey =[insert your own]
I did that.
Lines 200 to 201 in 55b56af
only if appskey is empty then sending is aborted at the point. (the appskey from abp)
from dragino.
Looks like your JOIN_REQUEST may have failed. Any chance of us seeing your log file? Be aware though, in DEBUG mode the logfile will include your devui, appeui and appkey - so edit those lines before posting.
In my app I use a loop to wait for a join before trying to send anything.
DRAGINO = Dragino(DRAGINO_INI,logging_level=logging.DEBUG)
logger.info("Waiting for JOIN to TTN")
DRAGINO.join()
while not DRAGINO.registered():
pass
logger.info("JOINED to TTN")
Have you made any changes to the dragino.py code? The standard code works fine if you don't need downlinks. (I modified rx_done() to pass those on to my code).
from dragino.
@BNNorman yes same -- this is key
while not DRAGINO.registered():
pass
Also: you may want to slow the loop down a bit :-)
from dragino.
Hey, dumb question, but do I copy all the values as big-endian? I remember raspi-lmic needed some little-endian
from dragino.
Just copy paste from ttn is all i did.
from dragino.
I just copy and paste from ttn console well - having changed the mode to output the correct array format
from dragino.
Related Issues (19)
- Downlink support HOT 14
- Support SF12 & RX2 HOT 4
- Dragino LoRa/GPS HAT on RPi 4 HOT 1
- Change the DevNonce when retrying a join. HOT 2
- Unable to join to TTN V3 HOT 5
- dio_mapping needs to be reset in join() HOT 1
- Add tx_done flag HOT 1
- Confirmed downlink messages? HOT 1
- Seeing more downlink messages than expected in TTS HOT 7
- Routing downlink messages HOT 2
- Possible race condition waiting for 'transmitting' flag to become False
- DevNonce changes in 1.0.4 HOT 2
- Downlink Messages HOT 2
- Can't get test.py to work HOT 6
- OTAA - waiting repeats.... v2 ttn and v3 both see the activation. HOT 6
- TTN V3 Compatability HOT 2
- Compatibility with Adafruit RFM95W? HOT 2
- test.py has problem reading dragino.ini file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dragino.