Merge branch 'master' of github.com:meshtastic/Meshtastic-protobufs

This commit is contained in:
Thomas Göttgens 2022-10-03 19:54:09 +02:00
commit 2c9f3c51e2
5 changed files with 26 additions and 25 deletions

View file

@ -3,8 +3,3 @@
# 256 bit or 128 bit psk key
*ChannelSettings.psk max_size:32
*ChannelSettings.name max_size:12
*ChannelSettings.tx_power int_size:8
*ChannelSettings.bandwidth int_size:16
*ChannelSettings.coding_rate int_size:8
*ChannelSettings.channel_num int_size:8

View file

@ -31,26 +31,9 @@ option java_outer_classname = "ChannelProtos";
message ChannelSettings {
/*
* NOTE: this field is _independent_ and unrelated to the concepts in channel.proto.
* this is controlling the actual hardware frequency the radio is transmitting on.
* In a perfect world we would have called it something else (band?) but I forgot to make this change during the big 1.2 renaming.
* Most users should never need to be exposed to this field/concept.
* A channel number between 1 and 13 (or whatever the max is in the current
* region). If ZERO then the rule is "use the old channel name hash based
* algorithm to derive the channel number")
* If using the hash algorithm the channel number will be: hash(channel_name) %
* NUM_CHANNELS (Where num channels depends on the regulatory region).
* NUM_CHANNELS_US is 13, for other values see MeshRadio.h in the device code.
* hash a string into an integer - djb2 by Dan Bernstein. -
* http://www.cse.yorku.ca/~oz/hash.html
* unsigned long hash(char *str) {
* unsigned long hash = 5381; int c;
* while ((c = *str++) != 0)
* hash = ((hash << 5) + hash) + (unsigned char) c;
* return hash;
* }
* Deprecated in favor of LoraConfig.channel_num
*/
uint32 channel_num = 1;
uint32 channel_num = 1 [deprecated = true];
/*
* A simple pre-shared key for now for crypto.

View file

@ -1,7 +1,11 @@
*NetworkConfig.wifi_ssid max_size:33
*NetworkConfig.wifi_psk max_size:64
*NetworkConfig.ntp_server max_size:33
# Max of three ignored nodes for our testing
*LoRaConfig.ignore_incoming max_count:3
*NetworkConfig.ntp_server max_size:33
*LoRaConfig.tx_power int_size:8
*LoRaConfig.bandwidth int_size:16
*LoRaConfig.coding_rate int_size:8
*LoRaConfig.channel_num int_size:8

View file

@ -572,6 +572,17 @@ message Config {
*/
int32 tx_power = 10;
/*
* This is controlling the actual hardware frequency the radio is transmitting on.
* Most users should never need to be exposed to this field/concept.
* A channel number between 1 and NUM_CHANNELS (whatever the max is in the current region).
* If ZERO then the rule is "use the old channel name hash based
* algorithm to derive the channel number")
* If using the hash algorithm the channel number will be: hash(channel_name) %
* NUM_CHANNELS (Where num channels depends on the regulatory region).
*/
uint32 channel_num = 11;
/*
* For testing it is useful sometimes to force a node to never listen to
* particular other nodes (simulating radio out of range). All nodenums listed

View file

@ -120,6 +120,14 @@ enum PortNum {
*/
ZPS_APP = 68;
/*
* Used to let multiple instances of Linux native applications communicate
* as if they did using their LoRa chip.
* Maintained by GitHub user GUVWAF.
* Project files at https://github.com/GUVWAF/Meshtasticator
*/
SIMULATOR_APP = 69;
/*
* Private applications should use portnums >= 256.
* To simplify initial development and testing you can use "PRIVATE_APP"