LORA Network Name and Network Pass Phrase.
Home › Forums › Conduit: AEP Model › LORA Network Name and Network Pass Phrase.
- This topic has 5 replies, 3 voices, and was last updated 8 years, 5 months ago by
Tom Hill.
-
AuthorPosts
-
November 16, 2016 at 3:12 pm #15493
Tom Hill
ParticipantBased on the Link the Network Name and Pass Phrase need to be a minimum 8 chars long and is case sensitive.
1) Is there an upper limit on the network name and phrase or there any validations run on the conduit while configuring this?
2) If the passphrase is long would this be of any concern with nodes/mdots located at a larger distance from the conduit? I am just curious since the further away an mdot is from the conduit the data packet size that can be transmitted seems limited and not sure if it affects while attempting to join the network having long network passphrases.
Thanks,
YogeshNovember 16, 2016 at 3:55 pm #15494Mike Fiore
BlockedYogesh,
The mDot API documents the limits for network name and passphrase.
/** Set network name * for use with OTA & AUTO_OTA network join modes * generates network ID (crc64 of name) automatically * @param name a string of of at least 8 bytes and no more than 128 bytes * @return MDOT_OK if success */ int32_t setNetworkName(const std::string& name); /** Set network passphrase * for use with OTA & AUTO_OTA network join modes * generates network key (cmac of passphrase) automatically * @param name a string of of at least 8 bytes and no more than 128 bytes * @return MDOT_OK if success */ int32_t setNetworkPassphrase(const std::string& passphrase);
Since the dot side limits the strings to 128 characters, it wouldn’t make sense to go any higher on the gateway.
WRT your second question, the name and phrase are turned into an EUI and KEY which are fixed length. So the same number of bytes are transmitted in your join request regardless of what the name and phrase are.
Hope this helps!
Cheers,
Mike
November 16, 2016 at 4:42 pm #15495Tom Hill
ParticipantThanks Mike that was very helpful. Is it a good practice to have just a series of numbers for the network name? Is there some good practice for network names that we should be using, so there is no collisions in where multiple conduits exist in fairly near proximity? Since the network id is being generated based on the comments above.
Thanks,
YogeshNovember 17, 2016 at 8:01 am #15500Mike Fiore
BlockedYogesh,
As long each conduit in near proximity has a different network name and passphrase from the others, you shouldn’t have any confusion among your devices. Even changing one character in the name will be enough.
Network ID = crc64(Network Name)
The chances of collision are extremely low since you probably won’t have more than a few gateways within range of each other.
Cheers,
Mike
November 17, 2016 at 8:06 am #15501Jason Reiss
KeymasterNovember 17, 2016 at 6:06 pm #15523Tom Hill
ParticipantThanks Mike and Jason for clearing things up and taking the time to respond.
Thanks,
Yogesh -
AuthorPosts
- You must be logged in to reply to this topic.