From d62df9bbad12552a1c222f408fb699e3856d35d5 Mon Sep 17 00:00:00 2001 From: geeksville Date: Sat, 18 Jul 2020 09:22:12 -0700 Subject: [PATCH] improve channel name docs --- mesh.proto | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/mesh.proto b/mesh.proto index 68de70b..463d270 100644 --- a/mesh.proto +++ b/mesh.proto @@ -349,10 +349,29 @@ enum Constants { // pass int constants between two very different environments } -// Full settings (center freq, spread factor, pre-shared secret key etc...) -// needed to configure a radio for speaking on a particlar channel This -// information can be encoded as a QRcode/url so that other users can configure -// their radio to join the same channel. +/** Full settings (center freq, spread factor, pre-shared secret key etc...) +needed to configure a radio for speaking on a particlar channel This +information can be encoded as a QRcode/url so that other users can configure +their radio to join the same channel. + +A note aboute how channel names are shown to users: + +#channelname-Xy + +# is a prefix used to indicate this is a channel name (idea from @professr). + +Where X is a letter from A-Z (base 26) representing a hash of the PSK for this +channel - so that if the user changes anything about the channel (which does +force a new PSK) this letter will also change. Thus preventing user confusion if +two friends try to type in a channel name of "BobsChan" and then can't talk +because their PSKs will be different. + +This also allows the option of someday if people have the PSK off (zero), the +users COULD type in a channel name and be able to talk. + +Y is a lower case letter from a-z that represents the channel 'speed' settings +(for some future definition of speed) +*/ message ChannelSettings { /**