OTAA connection to TTN
-
@jmarcelino Hey - Thanks a lot!. Taking the Dev EUI from the LoPy as you describe and typing it in the application of TTN makes OTAA working like a charm now ;)
-
@affoltep
I tried adding this
deveui on th eserverTTN (objenious)
and even when i do thislora.join(activation=LoRa.OTAA, auth=(app_key, app_eui, dev_eui), timeout=0)still not having success
-
@gas: just define the app_key and the app_eui in your LoPy code (no dev_eui) as shown in the examples. Then set the EUI Dev code in console.thethingsnetwork.org in your application/devices
-
-
What is the right format for auth tuple in case of OTAA?
auth=(app_eui, app_key)
or
auth=(app_key, app_eui, dev_eui)
-
@danielm : auth=(app_eui, app_key) is correct. You cannot define the dev_eui here
-
@affoltep
hi according to objenious app_key should never be sent when joining it is used to decrypt/crypt the data
but dev_eui yes since on the objenious side dashboard ou declare both dev-eui et app_eui
i tried all combination no success yet i'll keep you updated -
@gas
That is correct, App Key isn't sent, but it's used by LoPy to encrypt the join message which contains the App EUI and Dev EUI.Objenius then uses that same App Key to decrypt the join message at their end and then send a reply also encrypted with that key. It's a "secret" both the module and Objenius knows
Everything must match the settings you have on the Objenius dashboard.
-
Hi again
So meanwhile I build Multitech DIY ic880a +Rpi3 using TTN network
but still I'm not able to connect to my own gateway i did the declaration of lopy dev eui on TTN and used the app-key app_eui given by TTN
I might missing something on the gateway -
@gas
TTN is going through per-launch changes and not the easiest thing at the moment...Are you using https://console.thethingsnetwork.org/gateways and do you see you gateway as "connected" there?
-
yes my gateways is showing connected
but i think i figure out the issue at the eeror
I see CRC 100% failed
i wonder if my Rpi3 is not too close to the multitech board (interferences) -
If you say ic880a and Multitech together its a bit confusing, they're two different gateway boards. You'll either have a mCard from Multitech or a IC880A from IMST.
But wrt to your problem I'd check all the connections - are the antennas well attached to both the LoPy and the gateway board? - try replacing the cables connecting the Pi to the board, especially the SPI.
-
sorry for the confusion yes it is an ic880a not multitech
yes i'm checking back all the cables again and see if this helps
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login