mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-27 23:00:28 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ca32c039d | ||
|
|
81ec701240 | ||
|
|
b16d614495 | ||
|
|
5f7e37187f | ||
|
|
622fd6cf46 | ||
|
|
b9d73518dd | ||
|
|
17bdf45ac1 | ||
|
|
36052e2c61 | ||
|
|
06d232f889 | ||
|
|
f9b3c749e0 | ||
|
|
63a59753af | ||
|
|
20696e7827 | ||
|
|
127c9862da | ||
|
|
fee9473cac | ||
|
|
5337b72853 | ||
|
|
9bc5d91106 | ||
|
|
45ae66e9bf | ||
|
|
f03cf34370 | ||
|
|
47db2a3bd5 | ||
|
|
40cd961eab | ||
|
|
34cdd4bf0f | ||
|
|
b0ef58e5ca | ||
|
|
b6020b5ea8 | ||
|
|
ee544fcf31 | ||
|
|
886b0ac0ca | ||
|
|
ed4070a3d1 | ||
|
|
6d6568852a | ||
|
|
b479e14ca5 | ||
|
|
8fec5cedbe | ||
|
|
9852a3534b | ||
|
|
81fc920bdf | ||
|
|
5b1b18e84a | ||
|
|
9c8c143c62 | ||
|
|
db9858d75f | ||
|
|
874405cbdd | ||
|
|
2a3f2b8bdc | ||
|
|
9aae06c694 | ||
|
|
70ffc38c49 | ||
|
|
73071b0755 | ||
|
|
ab697dc583 | ||
|
|
ecc78fa45f | ||
|
|
e5309caf48 | ||
|
|
094d2f2079 | ||
|
|
5a917c9dac | ||
|
|
1df0eea0b7 | ||
|
|
718c3577db | ||
|
|
5111c32854 | ||
|
|
63d4e9a399 | ||
|
|
60773ceb16 | ||
|
|
5d6c3dd891 | ||
|
|
a564dd2b2d | ||
|
|
16cf1ab1ba | ||
|
|
47e326c8a9 | ||
|
|
9a7585cbef | ||
|
|
902f7af64d | ||
|
|
004bf27526 | ||
|
|
9cad90266e | ||
|
|
e9de01e10e | ||
|
|
372bedcd85 |
No files matched your search
@@ -105,7 +105,7 @@ section of the [Reticulum Manual](https://markqvist.github.io/Reticulum/manual/)
|
|||||||
To simply install Reticulum and related utilities on your system, the easiest way is via pip:
|
To simply install Reticulum and related utilities on your system, the easiest way is via pip:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip3 install rns
|
pip install rns
|
||||||
```
|
```
|
||||||
|
|
||||||
You can then start any program that uses Reticulum, or start Reticulum as a
|
You can then start any program that uses Reticulum, or start Reticulum as a
|
||||||
@@ -116,6 +116,8 @@ providing basic connectivity to other Reticulum peers that might be locally
|
|||||||
reachable. The default config file contains a few examples, and references for
|
reachable. The default config file contains a few examples, and references for
|
||||||
creating a more complex configuration.
|
creating a more complex configuration.
|
||||||
|
|
||||||
|
If you have an old version of `pip` on your system, you may need to upgrade it first with `pip install pip --upgrade`. If you no not already have `pip` installed, you can install it using the package manager of your system with `sudo apt install python3-pip` or similar.
|
||||||
|
|
||||||
For more detailed examples on how to expand communication over many mediums such
|
For more detailed examples on how to expand communication over many mediums such
|
||||||
as packet radio or LoRa, serial ports, or over fast IP links and the Internet using
|
as packet radio or LoRa, serial ports, or over fast IP links and the Internet using
|
||||||
the UDP and TCP interfaces, take a look at the [Supported Interfaces](https://markqvist.github.io/Reticulum/manual/interfaces.html)
|
the UDP and TCP interfaces, take a look at the [Supported Interfaces](https://markqvist.github.io/Reticulum/manual/interfaces.html)
|
||||||
@@ -160,7 +162,7 @@ Currently, the following interfaces are supported:
|
|||||||
|
|
||||||
## Performance
|
## Performance
|
||||||
Reticulum targets a *very* wide usable performance envelope, but prioritises
|
Reticulum targets a *very* wide usable performance envelope, but prioritises
|
||||||
functionality and performance over low-bandwidth mediums. The goal is to
|
functionality and performance on low-bandwidth mediums. The goal is to
|
||||||
provide a dynamic performance envelope from 250 bits per second, to 1 gigabit
|
provide a dynamic performance envelope from 250 bits per second, to 1 gigabit
|
||||||
per second on normal hardware.
|
per second on normal hardware.
|
||||||
|
|
||||||
@@ -176,37 +178,35 @@ real-world use is explored. There will be bugs. The API and wire-format can be
|
|||||||
considered relatively stable at the moment, but could change if warranted.
|
considered relatively stable at the moment, but could change if warranted.
|
||||||
|
|
||||||
## Development Roadmap
|
## Development Roadmap
|
||||||
- Version 0.4.0
|
- Improving [the manual](https://markqvist.github.io/Reticulum/manual/) with sections specifically for beginners
|
||||||
- Improving [the manual](https://markqvist.github.io/Reticulum/manual/) with sections specifically for beginners
|
- Performance and memory optimisations
|
||||||
- Performance and memory optimisations
|
- Utilities for managing identities, signing and encryption
|
||||||
- Utilities for managing identities, signing and encryption
|
- User friendly interface configuration tool
|
||||||
- User friendly interface configuration tool
|
- More interface types for even broader compatibility
|
||||||
- Support for radio and modem interfaces on Android
|
- Plain ESP32 devices (ESP-Now, WiFi, Bluetooth, etc.)
|
||||||
- More interface types for even broader compatibility
|
- More LoRa transceivers
|
||||||
- Plain ESP32 devices (ESP-Now, WiFi, Bluetooth, etc.)
|
- IR Transceivers
|
||||||
- More LoRa transceivers
|
- OpenWRT support
|
||||||
- IR Transceivers
|
- Metric-based path selection
|
||||||
- Planned, but not yet scheduled
|
- Distributed Destination Naming System
|
||||||
- OpenWRT support
|
- Network-wide path balancing
|
||||||
- Metric-based path selection
|
- Globally routable multicast
|
||||||
- Distributed Destination Naming System
|
- Bindings for other programming languages
|
||||||
- Network-wide path balancing
|
- Multiple paths in path table for quick recovery on link failures
|
||||||
- Globally routable multicast
|
- A portable Reticulum implementation in C, see [#21](https://github.com/markqvist/Reticulum/discussions/21)
|
||||||
- Bindings for other programming languages
|
- Easy way to share interface configurations, see [#19](https://github.com/markqvist/Reticulum/discussions/19)
|
||||||
- Multiple paths in path table for quick recovery on link failures
|
- More interface types
|
||||||
- A portable Reticulum implementation in C, see [#21](https://github.com/markqvist/Reticulum/discussions/21)
|
- AT-compatible modems
|
||||||
- Easy way to share interface configurations, see [#19](https://github.com/markqvist/Reticulum/discussions/19)
|
- Optical mediums
|
||||||
- More interface types
|
- AWDL / OWL
|
||||||
- AT-compatible modems
|
- HF Modems
|
||||||
- AWDL / OWL
|
- CAN-bus
|
||||||
- HF Modems
|
- ZeroMQ
|
||||||
- CAN-bus
|
- MQTT
|
||||||
- ZeroMQ
|
- XBee
|
||||||
- MQTT
|
- SPI
|
||||||
- XBee
|
- i²c
|
||||||
- SPI
|
- Tor
|
||||||
- i²c
|
|
||||||
- Tor
|
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
The installation of the default `rns` package requires the dependencies listed
|
The installation of the default `rns` package requires the dependencies listed
|
||||||
|
|||||||
@@ -91,6 +91,13 @@ class Identity:
|
|||||||
identity.app_data = identity_data[3]
|
identity.app_data = identity_data[3]
|
||||||
return identity
|
return identity
|
||||||
else:
|
else:
|
||||||
|
for registered_destination in RNS.Transport.destinations:
|
||||||
|
if destination_hash == registered_destination.hash:
|
||||||
|
identity = Identity(create_keys=False)
|
||||||
|
identity.load_public_key(registered_destination.identity.get_public_key())
|
||||||
|
identity.app_data = None
|
||||||
|
return identity
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@@ -0,0 +1,407 @@
|
|||||||
|
# MIT License
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016-2022 Mark Qvist / unsigned.io
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
|
||||||
|
from RNS.Interfaces.Interface import Interface
|
||||||
|
from time import sleep
|
||||||
|
import sys
|
||||||
|
import threading
|
||||||
|
import time
|
||||||
|
import RNS
|
||||||
|
|
||||||
|
class KISS():
|
||||||
|
FEND = 0xC0
|
||||||
|
FESC = 0xDB
|
||||||
|
TFEND = 0xDC
|
||||||
|
TFESC = 0xDD
|
||||||
|
CMD_UNKNOWN = 0xFE
|
||||||
|
CMD_DATA = 0x00
|
||||||
|
CMD_TXDELAY = 0x01
|
||||||
|
CMD_P = 0x02
|
||||||
|
CMD_SLOTTIME = 0x03
|
||||||
|
CMD_TXTAIL = 0x04
|
||||||
|
CMD_FULLDUPLEX = 0x05
|
||||||
|
CMD_SETHARDWARE = 0x06
|
||||||
|
CMD_READY = 0x0F
|
||||||
|
CMD_RETURN = 0xFF
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def escape(data):
|
||||||
|
data = data.replace(bytes([0xdb]), bytes([0xdb, 0xdd]))
|
||||||
|
data = data.replace(bytes([0xc0]), bytes([0xdb, 0xdc]))
|
||||||
|
return data
|
||||||
|
|
||||||
|
class KISSInterface(Interface):
|
||||||
|
MAX_CHUNK = 32768
|
||||||
|
BITRATE_GUESS = 1200
|
||||||
|
|
||||||
|
owner = None
|
||||||
|
port = None
|
||||||
|
speed = None
|
||||||
|
databits = None
|
||||||
|
parity = None
|
||||||
|
stopbits = None
|
||||||
|
serial = None
|
||||||
|
|
||||||
|
def __init__(self, owner, name, port, speed, databits, parity, stopbits, preamble, txtail, persistence, slottime, flow_control, beacon_interval, beacon_data):
|
||||||
|
import importlib
|
||||||
|
if RNS.vendor.platformutils.is_android():
|
||||||
|
self.on_android = True
|
||||||
|
if importlib.util.find_spec('usbserial4a') != None:
|
||||||
|
if importlib.util.find_spec('jnius') == None:
|
||||||
|
RNS.log("Could not load jnius API wrapper for Android, KISS interface cannot be created.", RNS.LOG_CRITICAL)
|
||||||
|
RNS.log("This probably means you are trying to use an USB-based interface from within Termux or similar.", RNS.LOG_CRITICAL)
|
||||||
|
RNS.log("This is currently not possible, due to this environment limiting access to the native Android APIs.", RNS.LOG_CRITICAL)
|
||||||
|
RNS.panic()
|
||||||
|
|
||||||
|
from usbserial4a import serial4a as serial
|
||||||
|
self.parity = "N"
|
||||||
|
|
||||||
|
else:
|
||||||
|
RNS.log("Could not load USB serial module for Android, KISS interface cannot be created.", RNS.LOG_CRITICAL)
|
||||||
|
RNS.log("You can install this module by issuing: pip install usbserial4a", RNS.LOG_CRITICAL)
|
||||||
|
RNS.panic()
|
||||||
|
else:
|
||||||
|
raise SystemError("Android-specific interface was used on non-Android OS")
|
||||||
|
|
||||||
|
self.rxb = 0
|
||||||
|
self.txb = 0
|
||||||
|
|
||||||
|
self.HW_MTU = 564
|
||||||
|
|
||||||
|
if beacon_data == None:
|
||||||
|
beacon_data = ""
|
||||||
|
|
||||||
|
self.pyserial = serial
|
||||||
|
self.serial = None
|
||||||
|
self.owner = owner
|
||||||
|
self.name = name
|
||||||
|
self.port = port
|
||||||
|
self.speed = speed
|
||||||
|
self.databits = databits
|
||||||
|
self.parity = "N"
|
||||||
|
self.stopbits = stopbits
|
||||||
|
self.timeout = 100
|
||||||
|
self.online = False
|
||||||
|
self.beacon_i = beacon_interval
|
||||||
|
self.beacon_d = beacon_data.encode("utf-8")
|
||||||
|
self.first_tx = None
|
||||||
|
self.bitrate = KISSInterface.BITRATE_GUESS
|
||||||
|
|
||||||
|
self.packet_queue = []
|
||||||
|
self.flow_control = flow_control
|
||||||
|
self.interface_ready = False
|
||||||
|
self.flow_control_timeout = 5
|
||||||
|
self.flow_control_locked = time.time()
|
||||||
|
|
||||||
|
self.preamble = preamble if preamble != None else 350;
|
||||||
|
self.txtail = txtail if txtail != None else 20;
|
||||||
|
self.persistence = persistence if persistence != None else 64;
|
||||||
|
self.slottime = slottime if slottime != None else 20;
|
||||||
|
|
||||||
|
if parity.lower() == "e" or parity.lower() == "even":
|
||||||
|
self.parity = "E"
|
||||||
|
|
||||||
|
if parity.lower() == "o" or parity.lower() == "odd":
|
||||||
|
self.parity = "O"
|
||||||
|
|
||||||
|
try:
|
||||||
|
self.open_port()
|
||||||
|
except Exception as e:
|
||||||
|
RNS.log("Could not open serial port "+self.port, RNS.LOG_ERROR)
|
||||||
|
raise e
|
||||||
|
|
||||||
|
if self.serial.is_open:
|
||||||
|
self.configure_device()
|
||||||
|
else:
|
||||||
|
raise IOError("Could not open serial port")
|
||||||
|
|
||||||
|
|
||||||
|
def open_port(self):
|
||||||
|
RNS.log("Opening serial port "+self.port+"...")
|
||||||
|
# Get device parameters
|
||||||
|
from usb4a import usb
|
||||||
|
device = usb.get_usb_device(self.port)
|
||||||
|
if device:
|
||||||
|
vid = device.getVendorId()
|
||||||
|
pid = device.getProductId()
|
||||||
|
|
||||||
|
# Driver overrides for speficic chips
|
||||||
|
proxy = self.pyserial.get_serial_port
|
||||||
|
if vid == 0x1A86 and pid == 0x55D4:
|
||||||
|
# Force CDC driver for Qinheng CH34x
|
||||||
|
RNS.log(str(self)+" using CDC driver for "+RNS.hexrep(vid)+":"+RNS.hexrep(pid), RNS.LOG_DEBUG)
|
||||||
|
from usbserial4a.cdcacmserial4a import CdcAcmSerial
|
||||||
|
proxy = CdcAcmSerial
|
||||||
|
|
||||||
|
self.serial = proxy(
|
||||||
|
self.port,
|
||||||
|
baudrate = self.speed,
|
||||||
|
bytesize = self.databits,
|
||||||
|
parity = self.parity,
|
||||||
|
stopbits = self.stopbits,
|
||||||
|
xonxoff = False,
|
||||||
|
rtscts = False,
|
||||||
|
timeout = None,
|
||||||
|
inter_byte_timeout = None,
|
||||||
|
# write_timeout = wtimeout,
|
||||||
|
dsrdtr = False,
|
||||||
|
)
|
||||||
|
|
||||||
|
if vid == 0x0403:
|
||||||
|
# Hardware parameters for FTDI devices @ 115200 baud
|
||||||
|
self.serial.DEFAULT_READ_BUFFER_SIZE = 16 * 1024
|
||||||
|
self.serial.USB_READ_TIMEOUT_MILLIS = 100
|
||||||
|
self.serial.timeout = 0.1
|
||||||
|
elif vid == 0x10C4:
|
||||||
|
# Hardware parameters for SiLabs CP210x @ 115200 baud
|
||||||
|
self.serial.DEFAULT_READ_BUFFER_SIZE = 64
|
||||||
|
self.serial.USB_READ_TIMEOUT_MILLIS = 12
|
||||||
|
self.serial.timeout = 0.012
|
||||||
|
elif vid == 0x1A86 and pid == 0x55D4:
|
||||||
|
# Hardware parameters for Qinheng CH34x @ 115200 baud
|
||||||
|
self.serial.DEFAULT_READ_BUFFER_SIZE = 64
|
||||||
|
self.serial.USB_READ_TIMEOUT_MILLIS = 12
|
||||||
|
self.serial.timeout = 0.1
|
||||||
|
else:
|
||||||
|
# Default values
|
||||||
|
self.serial.DEFAULT_READ_BUFFER_SIZE = 1 * 1024
|
||||||
|
self.serial.USB_READ_TIMEOUT_MILLIS = 100
|
||||||
|
self.serial.timeout = 0.1
|
||||||
|
|
||||||
|
RNS.log(str(self)+" USB read buffer size set to "+RNS.prettysize(self.serial.DEFAULT_READ_BUFFER_SIZE), RNS.LOG_DEBUG)
|
||||||
|
RNS.log(str(self)+" USB read timeout set to "+str(self.serial.USB_READ_TIMEOUT_MILLIS)+"ms", RNS.LOG_DEBUG)
|
||||||
|
RNS.log(str(self)+" USB write timeout set to "+str(self.serial.USB_WRITE_TIMEOUT_MILLIS)+"ms", RNS.LOG_DEBUG)
|
||||||
|
|
||||||
|
def configure_device(self):
|
||||||
|
# Allow time for interface to initialise before config
|
||||||
|
sleep(2.0)
|
||||||
|
thread = threading.Thread(target=self.readLoop)
|
||||||
|
thread.daemon = True
|
||||||
|
thread.start()
|
||||||
|
self.online = True
|
||||||
|
RNS.log("Serial port "+self.port+" is now open")
|
||||||
|
RNS.log("Configuring KISS interface parameters...")
|
||||||
|
self.setPreamble(self.preamble)
|
||||||
|
self.setTxTail(self.txtail)
|
||||||
|
self.setPersistence(self.persistence)
|
||||||
|
self.setSlotTime(self.slottime)
|
||||||
|
self.setFlowControl(self.flow_control)
|
||||||
|
self.interface_ready = True
|
||||||
|
RNS.log("KISS interface configured")
|
||||||
|
|
||||||
|
def setPreamble(self, preamble):
|
||||||
|
preamble_ms = preamble
|
||||||
|
preamble = int(preamble_ms / 10)
|
||||||
|
if preamble < 0:
|
||||||
|
preamble = 0
|
||||||
|
if preamble > 255:
|
||||||
|
preamble = 255
|
||||||
|
|
||||||
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_TXDELAY])+bytes([preamble])+bytes([KISS.FEND])
|
||||||
|
written = self.serial.write(kiss_command)
|
||||||
|
if written != len(kiss_command):
|
||||||
|
raise IOError("Could not configure KISS interface preamble to "+str(preamble_ms)+" (command value "+str(preamble)+")")
|
||||||
|
|
||||||
|
def setTxTail(self, txtail):
|
||||||
|
txtail_ms = txtail
|
||||||
|
txtail = int(txtail_ms / 10)
|
||||||
|
if txtail < 0:
|
||||||
|
txtail = 0
|
||||||
|
if txtail > 255:
|
||||||
|
txtail = 255
|
||||||
|
|
||||||
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_TXTAIL])+bytes([txtail])+bytes([KISS.FEND])
|
||||||
|
written = self.serial.write(kiss_command)
|
||||||
|
if written != len(kiss_command):
|
||||||
|
raise IOError("Could not configure KISS interface TX tail to "+str(txtail_ms)+" (command value "+str(txtail)+")")
|
||||||
|
|
||||||
|
def setPersistence(self, persistence):
|
||||||
|
if persistence < 0:
|
||||||
|
persistence = 0
|
||||||
|
if persistence > 255:
|
||||||
|
persistence = 255
|
||||||
|
|
||||||
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_P])+bytes([persistence])+bytes([KISS.FEND])
|
||||||
|
written = self.serial.write(kiss_command)
|
||||||
|
if written != len(kiss_command):
|
||||||
|
raise IOError("Could not configure KISS interface persistence to "+str(persistence))
|
||||||
|
|
||||||
|
def setSlotTime(self, slottime):
|
||||||
|
slottime_ms = slottime
|
||||||
|
slottime = int(slottime_ms / 10)
|
||||||
|
if slottime < 0:
|
||||||
|
slottime = 0
|
||||||
|
if slottime > 255:
|
||||||
|
slottime = 255
|
||||||
|
|
||||||
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_SLOTTIME])+bytes([slottime])+bytes([KISS.FEND])
|
||||||
|
written = self.serial.write(kiss_command)
|
||||||
|
if written != len(kiss_command):
|
||||||
|
raise IOError("Could not configure KISS interface slot time to "+str(slottime_ms)+" (command value "+str(slottime)+")")
|
||||||
|
|
||||||
|
def setFlowControl(self, flow_control):
|
||||||
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_READY])+bytes([0x01])+bytes([KISS.FEND])
|
||||||
|
written = self.serial.write(kiss_command)
|
||||||
|
if written != len(kiss_command):
|
||||||
|
if (flow_control):
|
||||||
|
raise IOError("Could not enable KISS interface flow control")
|
||||||
|
else:
|
||||||
|
raise IOError("Could not enable KISS interface flow control")
|
||||||
|
|
||||||
|
|
||||||
|
def processIncoming(self, data):
|
||||||
|
self.rxb += len(data)
|
||||||
|
def af():
|
||||||
|
self.owner.inbound(data, self)
|
||||||
|
threading.Thread(target=af, daemon=True).start()
|
||||||
|
|
||||||
|
def processOutgoing(self,data):
|
||||||
|
datalen = len(data)
|
||||||
|
if self.online:
|
||||||
|
if self.interface_ready:
|
||||||
|
if self.flow_control:
|
||||||
|
self.interface_ready = False
|
||||||
|
self.flow_control_locked = time.time()
|
||||||
|
|
||||||
|
data = data.replace(bytes([0xdb]), bytes([0xdb])+bytes([0xdd]))
|
||||||
|
data = data.replace(bytes([0xc0]), bytes([0xdb])+bytes([0xdc]))
|
||||||
|
frame = bytes([KISS.FEND])+bytes([0x00])+data+bytes([KISS.FEND])
|
||||||
|
|
||||||
|
written = self.serial.write(frame)
|
||||||
|
self.txb += datalen
|
||||||
|
|
||||||
|
if data == self.beacon_d:
|
||||||
|
self.first_tx = None
|
||||||
|
else:
|
||||||
|
if self.first_tx == None:
|
||||||
|
self.first_tx = time.time()
|
||||||
|
|
||||||
|
if written != len(frame):
|
||||||
|
raise IOError("Serial interface only wrote "+str(written)+" bytes of "+str(len(data)))
|
||||||
|
|
||||||
|
else:
|
||||||
|
self.queue(data)
|
||||||
|
|
||||||
|
def queue(self, data):
|
||||||
|
self.packet_queue.append(data)
|
||||||
|
|
||||||
|
def process_queue(self):
|
||||||
|
if len(self.packet_queue) > 0:
|
||||||
|
data = self.packet_queue.pop(0)
|
||||||
|
self.interface_ready = True
|
||||||
|
self.processOutgoing(data)
|
||||||
|
elif len(self.packet_queue) == 0:
|
||||||
|
self.interface_ready = True
|
||||||
|
|
||||||
|
def readLoop(self):
|
||||||
|
try:
|
||||||
|
in_frame = False
|
||||||
|
escape = False
|
||||||
|
command = KISS.CMD_UNKNOWN
|
||||||
|
data_buffer = b""
|
||||||
|
last_read_ms = int(time.time()*1000)
|
||||||
|
|
||||||
|
while self.serial.is_open:
|
||||||
|
serial_bytes = self.serial.read()
|
||||||
|
got = len(serial_bytes)
|
||||||
|
|
||||||
|
for byte in serial_bytes:
|
||||||
|
last_read_ms = int(time.time()*1000)
|
||||||
|
|
||||||
|
if (in_frame and byte == KISS.FEND and command == KISS.CMD_DATA):
|
||||||
|
in_frame = False
|
||||||
|
self.processIncoming(data_buffer)
|
||||||
|
elif (byte == KISS.FEND):
|
||||||
|
in_frame = True
|
||||||
|
command = KISS.CMD_UNKNOWN
|
||||||
|
data_buffer = b""
|
||||||
|
elif (in_frame and len(data_buffer) < self.HW_MTU):
|
||||||
|
if (len(data_buffer) == 0 and command == KISS.CMD_UNKNOWN):
|
||||||
|
# We only support one HDLC port for now, so
|
||||||
|
# strip off the port nibble
|
||||||
|
byte = byte & 0x0F
|
||||||
|
command = byte
|
||||||
|
elif (command == KISS.CMD_DATA):
|
||||||
|
if (byte == KISS.FESC):
|
||||||
|
escape = True
|
||||||
|
else:
|
||||||
|
if (escape):
|
||||||
|
if (byte == KISS.TFEND):
|
||||||
|
byte = KISS.FEND
|
||||||
|
if (byte == KISS.TFESC):
|
||||||
|
byte = KISS.FESC
|
||||||
|
escape = False
|
||||||
|
data_buffer = data_buffer+bytes([byte])
|
||||||
|
elif (command == KISS.CMD_READY):
|
||||||
|
self.process_queue()
|
||||||
|
|
||||||
|
if got == 0:
|
||||||
|
time_since_last = int(time.time()*1000) - last_read_ms
|
||||||
|
if len(data_buffer) > 0 and time_since_last > self.timeout:
|
||||||
|
data_buffer = b""
|
||||||
|
in_frame = False
|
||||||
|
command = KISS.CMD_UNKNOWN
|
||||||
|
escape = False
|
||||||
|
sleep(0.05)
|
||||||
|
|
||||||
|
if self.flow_control:
|
||||||
|
if not self.interface_ready:
|
||||||
|
if time.time() > self.flow_control_locked + self.flow_control_timeout:
|
||||||
|
RNS.log("Interface "+str(self)+" is unlocking flow control due to time-out. This should not happen. Your hardware might have missed a flow-control READY command, or maybe it does not support flow-control.", RNS.LOG_WARNING)
|
||||||
|
self.process_queue()
|
||||||
|
|
||||||
|
if self.beacon_i != None and self.beacon_d != None:
|
||||||
|
if self.first_tx != None:
|
||||||
|
if time.time() > self.first_tx + self.beacon_i:
|
||||||
|
RNS.log("Interface "+str(self)+" is transmitting beacon data: "+str(self.beacon_d.decode("utf-8")), RNS.LOG_DEBUG)
|
||||||
|
self.first_tx = None
|
||||||
|
self.processOutgoing(self.beacon_d)
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
self.online = False
|
||||||
|
RNS.log("A serial port error occurred, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
RNS.log("The interface "+str(self)+" experienced an unrecoverable error and is now offline.", RNS.LOG_ERROR)
|
||||||
|
|
||||||
|
if RNS.Reticulum.panic_on_interface_error:
|
||||||
|
RNS.panic()
|
||||||
|
|
||||||
|
RNS.log("Reticulum will attempt to reconnect the interface periodically.", RNS.LOG_ERROR)
|
||||||
|
|
||||||
|
self.online = False
|
||||||
|
self.serial.close()
|
||||||
|
self.reconnect_port()
|
||||||
|
|
||||||
|
def reconnect_port(self):
|
||||||
|
while not self.online:
|
||||||
|
try:
|
||||||
|
time.sleep(5)
|
||||||
|
RNS.log("Attempting to reconnect serial port "+str(self.port)+" for "+str(self)+"...", RNS.LOG_VERBOSE)
|
||||||
|
self.open_port()
|
||||||
|
if self.serial.is_open:
|
||||||
|
self.configure_device()
|
||||||
|
except Exception as e:
|
||||||
|
RNS.log("Error while reconnecting port, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
|
||||||
|
RNS.log("Reconnected serial port for "+str(self))
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return "KISSInterface["+self.name+"]"
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,258 @@
|
|||||||
|
# MIT License
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016-2022 Mark Qvist / unsigned.io
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
|
||||||
|
from RNS.Interfaces.Interface import Interface
|
||||||
|
from time import sleep
|
||||||
|
import sys
|
||||||
|
import threading
|
||||||
|
import time
|
||||||
|
import RNS
|
||||||
|
|
||||||
|
class HDLC():
|
||||||
|
# The Serial Interface packetizes data using
|
||||||
|
# simplified HDLC framing, similar to PPP
|
||||||
|
FLAG = 0x7E
|
||||||
|
ESC = 0x7D
|
||||||
|
ESC_MASK = 0x20
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def escape(data):
|
||||||
|
data = data.replace(bytes([HDLC.ESC]), bytes([HDLC.ESC, HDLC.ESC^HDLC.ESC_MASK]))
|
||||||
|
data = data.replace(bytes([HDLC.FLAG]), bytes([HDLC.ESC, HDLC.FLAG^HDLC.ESC_MASK]))
|
||||||
|
return data
|
||||||
|
|
||||||
|
class SerialInterface(Interface):
|
||||||
|
MAX_CHUNK = 32768
|
||||||
|
|
||||||
|
owner = None
|
||||||
|
port = None
|
||||||
|
speed = None
|
||||||
|
databits = None
|
||||||
|
parity = None
|
||||||
|
stopbits = None
|
||||||
|
serial = None
|
||||||
|
|
||||||
|
def __init__(self, owner, name, port, speed, databits, parity, stopbits):
|
||||||
|
import importlib
|
||||||
|
if RNS.vendor.platformutils.is_android():
|
||||||
|
self.on_android = True
|
||||||
|
if importlib.util.find_spec('usbserial4a') != None:
|
||||||
|
if importlib.util.find_spec('jnius') == None:
|
||||||
|
RNS.log("Could not load jnius API wrapper for Android, Serial interface cannot be created.", RNS.LOG_CRITICAL)
|
||||||
|
RNS.log("This probably means you are trying to use an USB-based interface from within Termux or similar.", RNS.LOG_CRITICAL)
|
||||||
|
RNS.log("This is currently not possible, due to this environment limiting access to the native Android APIs.", RNS.LOG_CRITICAL)
|
||||||
|
RNS.panic()
|
||||||
|
|
||||||
|
from usbserial4a import serial4a as serial
|
||||||
|
self.parity = "N"
|
||||||
|
|
||||||
|
else:
|
||||||
|
RNS.log("Could not load USB serial module for Android, Serial interface cannot be created.", RNS.LOG_CRITICAL)
|
||||||
|
RNS.log("You can install this module by issuing: pip install usbserial4a", RNS.LOG_CRITICAL)
|
||||||
|
RNS.panic()
|
||||||
|
else:
|
||||||
|
raise SystemError("Android-specific interface was used on non-Android OS")
|
||||||
|
|
||||||
|
self.rxb = 0
|
||||||
|
self.txb = 0
|
||||||
|
|
||||||
|
self.HW_MTU = 564
|
||||||
|
|
||||||
|
self.pyserial = serial
|
||||||
|
self.serial = None
|
||||||
|
self.owner = owner
|
||||||
|
self.name = name
|
||||||
|
self.port = port
|
||||||
|
self.speed = speed
|
||||||
|
self.databits = databits
|
||||||
|
self.parity = "N"
|
||||||
|
self.stopbits = stopbits
|
||||||
|
self.timeout = 100
|
||||||
|
self.online = False
|
||||||
|
self.bitrate = self.speed
|
||||||
|
|
||||||
|
if parity.lower() == "e" or parity.lower() == "even":
|
||||||
|
self.parity = "E"
|
||||||
|
|
||||||
|
if parity.lower() == "o" or parity.lower() == "odd":
|
||||||
|
self.parity = "O"
|
||||||
|
|
||||||
|
try:
|
||||||
|
self.open_port()
|
||||||
|
except Exception as e:
|
||||||
|
RNS.log("Could not open serial port for interface "+str(self), RNS.LOG_ERROR)
|
||||||
|
raise e
|
||||||
|
|
||||||
|
if self.serial.is_open:
|
||||||
|
self.configure_device()
|
||||||
|
else:
|
||||||
|
raise IOError("Could not open serial port")
|
||||||
|
|
||||||
|
|
||||||
|
def open_port(self):
|
||||||
|
RNS.log("Opening serial port "+self.port+"...")
|
||||||
|
# Get device parameters
|
||||||
|
from usb4a import usb
|
||||||
|
device = usb.get_usb_device(self.port)
|
||||||
|
if device:
|
||||||
|
vid = device.getVendorId()
|
||||||
|
pid = device.getProductId()
|
||||||
|
|
||||||
|
# Driver overrides for speficic chips
|
||||||
|
proxy = self.pyserial.get_serial_port
|
||||||
|
if vid == 0x1A86 and pid == 0x55D4:
|
||||||
|
# Force CDC driver for Qinheng CH34x
|
||||||
|
RNS.log(str(self)+" using CDC driver for "+RNS.hexrep(vid)+":"+RNS.hexrep(pid), RNS.LOG_DEBUG)
|
||||||
|
from usbserial4a.cdcacmserial4a import CdcAcmSerial
|
||||||
|
proxy = CdcAcmSerial
|
||||||
|
|
||||||
|
self.serial = proxy(
|
||||||
|
self.port,
|
||||||
|
baudrate = self.speed,
|
||||||
|
bytesize = self.databits,
|
||||||
|
parity = self.parity,
|
||||||
|
stopbits = self.stopbits,
|
||||||
|
xonxoff = False,
|
||||||
|
rtscts = False,
|
||||||
|
timeout = None,
|
||||||
|
inter_byte_timeout = None,
|
||||||
|
# write_timeout = wtimeout,
|
||||||
|
dsrdtr = False,
|
||||||
|
)
|
||||||
|
|
||||||
|
if vid == 0x0403:
|
||||||
|
# Hardware parameters for FTDI devices @ 115200 baud
|
||||||
|
self.serial.DEFAULT_READ_BUFFER_SIZE = 16 * 1024
|
||||||
|
self.serial.USB_READ_TIMEOUT_MILLIS = 100
|
||||||
|
self.serial.timeout = 0.1
|
||||||
|
elif vid == 0x10C4:
|
||||||
|
# Hardware parameters for SiLabs CP210x @ 115200 baud
|
||||||
|
self.serial.DEFAULT_READ_BUFFER_SIZE = 64
|
||||||
|
self.serial.USB_READ_TIMEOUT_MILLIS = 12
|
||||||
|
self.serial.timeout = 0.012
|
||||||
|
elif vid == 0x1A86 and pid == 0x55D4:
|
||||||
|
# Hardware parameters for Qinheng CH34x @ 115200 baud
|
||||||
|
self.serial.DEFAULT_READ_BUFFER_SIZE = 64
|
||||||
|
self.serial.USB_READ_TIMEOUT_MILLIS = 12
|
||||||
|
self.serial.timeout = 0.1
|
||||||
|
else:
|
||||||
|
# Default values
|
||||||
|
self.serial.DEFAULT_READ_BUFFER_SIZE = 1 * 1024
|
||||||
|
self.serial.USB_READ_TIMEOUT_MILLIS = 100
|
||||||
|
self.serial.timeout = 0.1
|
||||||
|
|
||||||
|
RNS.log(str(self)+" USB read buffer size set to "+RNS.prettysize(self.serial.DEFAULT_READ_BUFFER_SIZE), RNS.LOG_DEBUG)
|
||||||
|
RNS.log(str(self)+" USB read timeout set to "+str(self.serial.USB_READ_TIMEOUT_MILLIS)+"ms", RNS.LOG_DEBUG)
|
||||||
|
RNS.log(str(self)+" USB write timeout set to "+str(self.serial.USB_WRITE_TIMEOUT_MILLIS)+"ms", RNS.LOG_DEBUG)
|
||||||
|
|
||||||
|
def configure_device(self):
|
||||||
|
sleep(0.5)
|
||||||
|
thread = threading.Thread(target=self.readLoop)
|
||||||
|
thread.daemon = True
|
||||||
|
thread.start()
|
||||||
|
self.online = True
|
||||||
|
RNS.log("Serial port "+self.port+" is now open", RNS.LOG_VERBOSE)
|
||||||
|
|
||||||
|
|
||||||
|
def processIncoming(self, data):
|
||||||
|
self.rxb += len(data)
|
||||||
|
def af():
|
||||||
|
self.owner.inbound(data, self)
|
||||||
|
threading.Thread(target=af, daemon=True).start()
|
||||||
|
|
||||||
|
def processOutgoing(self,data):
|
||||||
|
if self.online:
|
||||||
|
data = bytes([HDLC.FLAG])+HDLC.escape(data)+bytes([HDLC.FLAG])
|
||||||
|
written = self.serial.write(data)
|
||||||
|
self.txb += len(data)
|
||||||
|
if written != len(data):
|
||||||
|
raise IOError("Serial interface only wrote "+str(written)+" bytes of "+str(len(data)))
|
||||||
|
|
||||||
|
def readLoop(self):
|
||||||
|
try:
|
||||||
|
in_frame = False
|
||||||
|
escape = False
|
||||||
|
data_buffer = b""
|
||||||
|
last_read_ms = int(time.time()*1000)
|
||||||
|
|
||||||
|
while self.serial.is_open:
|
||||||
|
serial_bytes = self.serial.read()
|
||||||
|
got = len(serial_bytes)
|
||||||
|
|
||||||
|
for byte in serial_bytes:
|
||||||
|
last_read_ms = int(time.time()*1000)
|
||||||
|
|
||||||
|
if (in_frame and byte == HDLC.FLAG):
|
||||||
|
in_frame = False
|
||||||
|
self.processIncoming(data_buffer)
|
||||||
|
elif (byte == HDLC.FLAG):
|
||||||
|
in_frame = True
|
||||||
|
data_buffer = b""
|
||||||
|
elif (in_frame and len(data_buffer) < self.HW_MTU):
|
||||||
|
if (byte == HDLC.ESC):
|
||||||
|
escape = True
|
||||||
|
else:
|
||||||
|
if (escape):
|
||||||
|
if (byte == HDLC.FLAG ^ HDLC.ESC_MASK):
|
||||||
|
byte = HDLC.FLAG
|
||||||
|
if (byte == HDLC.ESC ^ HDLC.ESC_MASK):
|
||||||
|
byte = HDLC.ESC
|
||||||
|
escape = False
|
||||||
|
data_buffer = data_buffer+bytes([byte])
|
||||||
|
|
||||||
|
if got == 0:
|
||||||
|
time_since_last = int(time.time()*1000) - last_read_ms
|
||||||
|
if len(data_buffer) > 0 and time_since_last > self.timeout:
|
||||||
|
data_buffer = b""
|
||||||
|
in_frame = False
|
||||||
|
escape = False
|
||||||
|
# sleep(0.08)
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
self.online = False
|
||||||
|
RNS.log("A serial port error occurred, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
RNS.log("The interface "+str(self)+" experienced an unrecoverable error and is now offline.", RNS.LOG_ERROR)
|
||||||
|
|
||||||
|
if RNS.Reticulum.panic_on_interface_error:
|
||||||
|
RNS.panic()
|
||||||
|
|
||||||
|
RNS.log("Reticulum will attempt to reconnect the interface periodically.", RNS.LOG_ERROR)
|
||||||
|
|
||||||
|
self.online = False
|
||||||
|
self.serial.close()
|
||||||
|
self.reconnect_port()
|
||||||
|
|
||||||
|
def reconnect_port(self):
|
||||||
|
while not self.online:
|
||||||
|
try:
|
||||||
|
time.sleep(5)
|
||||||
|
RNS.log("Attempting to reconnect serial port "+str(self.port)+" for "+str(self)+"...", RNS.LOG_VERBOSE)
|
||||||
|
self.open_port()
|
||||||
|
if self.serial.is_open:
|
||||||
|
self.configure_device()
|
||||||
|
except Exception as e:
|
||||||
|
RNS.log("Error while reconnecting port, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
|
||||||
|
RNS.log("Reconnected serial port for "+str(self))
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return "SerialInterface["+self.name+"]"
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# MIT License
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016-2022 Mark Qvist / unsigned.io
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
|
||||||
|
import os
|
||||||
|
import glob
|
||||||
|
|
||||||
|
modules = glob.glob(os.path.dirname(__file__)+"/*.py")
|
||||||
|
__all__ = [ os.path.basename(f)[:-3] for f in modules if not f.endswith('__init__.py')]
|
||||||
@@ -75,6 +75,7 @@ class AutoInterface(Interface):
|
|||||||
|
|
||||||
self.outbound_udp_socket = None
|
self.outbound_udp_socket = None
|
||||||
|
|
||||||
|
self.announce_rate_target = None
|
||||||
self.announce_interval = AutoInterface.PEERING_TIMEOUT/6.0
|
self.announce_interval = AutoInterface.PEERING_TIMEOUT/6.0
|
||||||
self.peer_job_interval = AutoInterface.PEERING_TIMEOUT*1.1
|
self.peer_job_interval = AutoInterface.PEERING_TIMEOUT*1.1
|
||||||
self.peering_timeout = AutoInterface.PEERING_TIMEOUT
|
self.peering_timeout = AutoInterface.PEERING_TIMEOUT
|
||||||
@@ -266,6 +267,22 @@ class AutoInterface(Interface):
|
|||||||
RNS.log(str(self)+" removed peer "+str(peer_addr)+" on "+str(removed_peer[0]), RNS.LOG_DEBUG)
|
RNS.log(str(self)+" removed peer "+str(peer_addr)+" on "+str(removed_peer[0]), RNS.LOG_DEBUG)
|
||||||
|
|
||||||
for ifname in self.adopted_interfaces:
|
for ifname in self.adopted_interfaces:
|
||||||
|
# Check that the link-local address has not changed
|
||||||
|
try:
|
||||||
|
addresses = self.netifaces.ifaddresses(ifname)
|
||||||
|
if self.netifaces.AF_INET6 in addresses:
|
||||||
|
link_local_addr = None
|
||||||
|
for address in addresses[self.netifaces.AF_INET6]:
|
||||||
|
if "addr" in address:
|
||||||
|
if address["addr"].startswith("fe80:"):
|
||||||
|
link_local_addr = address["addr"].split("%")[0]
|
||||||
|
if link_local_addr != self.adopted_interfaces[ifname]:
|
||||||
|
self.adopted_interfaces[ifname] = link_local_addr
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
RNS.log("Could not get device information while updating link-local addresses for "+str(self)+". The contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
|
||||||
|
# Check multicast echo timeouts
|
||||||
last_multicast_echo = 0
|
last_multicast_echo = 0
|
||||||
if ifname in self.multicast_echoes:
|
if ifname in self.multicast_echoes:
|
||||||
last_multicast_echo = self.multicast_echoes[ifname]
|
last_multicast_echo = self.multicast_echoes[ifname]
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ class KISS():
|
|||||||
CMD_RADIO_STATE = 0x06
|
CMD_RADIO_STATE = 0x06
|
||||||
CMD_RADIO_LOCK = 0x07
|
CMD_RADIO_LOCK = 0x07
|
||||||
CMD_DETECT = 0x08
|
CMD_DETECT = 0x08
|
||||||
|
CMD_LEAVE = 0x0A
|
||||||
CMD_READY = 0x0F
|
CMD_READY = 0x0F
|
||||||
CMD_STAT_RX = 0x21
|
CMD_STAT_RX = 0x21
|
||||||
CMD_STAT_TX = 0x22
|
CMD_STAT_TX = 0x22
|
||||||
@@ -51,6 +52,9 @@ class KISS():
|
|||||||
CMD_STAT_SNR = 0x24
|
CMD_STAT_SNR = 0x24
|
||||||
CMD_BLINK = 0x30
|
CMD_BLINK = 0x30
|
||||||
CMD_RANDOM = 0x40
|
CMD_RANDOM = 0x40
|
||||||
|
CMD_FB_EXT = 0x41
|
||||||
|
CMD_FB_READ = 0x42
|
||||||
|
CMD_FB_WRITE = 0x43
|
||||||
CMD_PLATFORM = 0x48
|
CMD_PLATFORM = 0x48
|
||||||
CMD_MCU = 0x49
|
CMD_MCU = 0x49
|
||||||
CMD_FW_VERSION = 0x50
|
CMD_FW_VERSION = 0x50
|
||||||
@@ -82,14 +86,6 @@ class KISS():
|
|||||||
class RNodeInterface(Interface):
|
class RNodeInterface(Interface):
|
||||||
MAX_CHUNK = 32768
|
MAX_CHUNK = 32768
|
||||||
|
|
||||||
owner = None
|
|
||||||
port = None
|
|
||||||
speed = None
|
|
||||||
databits = None
|
|
||||||
parity = None
|
|
||||||
stopbits = None
|
|
||||||
serial = None
|
|
||||||
|
|
||||||
FREQ_MIN = 137000000
|
FREQ_MIN = 137000000
|
||||||
FREQ_MAX = 1020000000
|
FREQ_MAX = 1020000000
|
||||||
|
|
||||||
@@ -98,9 +94,14 @@ class RNodeInterface(Interface):
|
|||||||
CALLSIGN_MAX_LEN = 32
|
CALLSIGN_MAX_LEN = 32
|
||||||
|
|
||||||
REQUIRED_FW_VER_MAJ = 1
|
REQUIRED_FW_VER_MAJ = 1
|
||||||
REQUIRED_FW_VER_MIN = 26
|
REQUIRED_FW_VER_MIN = 52
|
||||||
|
|
||||||
|
RECONNECT_WAIT = 5
|
||||||
|
|
||||||
def __init__(self, owner, name, port, frequency = None, bandwidth = None, txpower = None, sf = None, cr = None, flow_control = False, id_interval = None, id_callsign = None):
|
def __init__(self, owner, name, port, frequency = None, bandwidth = None, txpower = None, sf = None, cr = None, flow_control = False, id_interval = None, id_callsign = None):
|
||||||
|
if RNS.vendor.platformutils.is_android():
|
||||||
|
raise SystemError("Invlaid interface type. The Android-specific RNode interface must be used on Android")
|
||||||
|
|
||||||
import importlib
|
import importlib
|
||||||
if importlib.util.find_spec('serial') != None:
|
if importlib.util.find_spec('serial') != None:
|
||||||
import serial
|
import serial
|
||||||
@@ -121,7 +122,6 @@ class RNodeInterface(Interface):
|
|||||||
self.port = port
|
self.port = port
|
||||||
self.speed = 115200
|
self.speed = 115200
|
||||||
self.databits = 8
|
self.databits = 8
|
||||||
self.parity = serial.PARITY_NONE
|
|
||||||
self.stopbits = 1
|
self.stopbits = 1
|
||||||
self.timeout = 100
|
self.timeout = 100
|
||||||
self.online = False
|
self.online = False
|
||||||
@@ -134,6 +134,7 @@ class RNodeInterface(Interface):
|
|||||||
self.state = KISS.RADIO_STATE_OFF
|
self.state = KISS.RADIO_STATE_OFF
|
||||||
self.bitrate = 0
|
self.bitrate = 0
|
||||||
self.platform = None
|
self.platform = None
|
||||||
|
self.display = None
|
||||||
self.mcu = None
|
self.mcu = None
|
||||||
self.detected = False
|
self.detected = False
|
||||||
self.firmware_ok = False
|
self.firmware_ok = False
|
||||||
@@ -142,6 +143,7 @@ class RNodeInterface(Interface):
|
|||||||
|
|
||||||
self.last_id = 0
|
self.last_id = 0
|
||||||
self.first_tx = None
|
self.first_tx = None
|
||||||
|
self.reconnect_w = RNodeInterface.RECONNECT_WAIT
|
||||||
|
|
||||||
self.r_frequency = None
|
self.r_frequency = None
|
||||||
self.r_bandwidth = None
|
self.r_bandwidth = None
|
||||||
@@ -158,6 +160,7 @@ class RNodeInterface(Interface):
|
|||||||
self.packet_queue = []
|
self.packet_queue = []
|
||||||
self.flow_control = flow_control
|
self.flow_control = flow_control
|
||||||
self.interface_ready = False
|
self.interface_ready = False
|
||||||
|
self.announce_rate_target = None
|
||||||
|
|
||||||
self.validcfg = True
|
self.validcfg = True
|
||||||
if (self.frequency < RNodeInterface.FREQ_MIN or self.frequency > RNodeInterface.FREQ_MAX):
|
if (self.frequency < RNodeInterface.FREQ_MIN or self.frequency > RNodeInterface.FREQ_MAX):
|
||||||
@@ -218,7 +221,7 @@ class RNodeInterface(Interface):
|
|||||||
port = self.port,
|
port = self.port,
|
||||||
baudrate = self.speed,
|
baudrate = self.speed,
|
||||||
bytesize = self.databits,
|
bytesize = self.databits,
|
||||||
parity = self.parity,
|
parity = self.pyserial.PARITY_NONE,
|
||||||
stopbits = self.stopbits,
|
stopbits = self.stopbits,
|
||||||
xonxoff = False,
|
xonxoff = False,
|
||||||
rtscts = False,
|
rtscts = False,
|
||||||
@@ -236,23 +239,22 @@ class RNodeInterface(Interface):
|
|||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
self.detect()
|
self.detect()
|
||||||
sleep(0.1)
|
sleep(0.2)
|
||||||
|
|
||||||
if not self.detected:
|
if not self.detected:
|
||||||
raise IOError("Could not detect device")
|
raise IOError("Could not detect device")
|
||||||
else:
|
else:
|
||||||
if self.platform == KISS.PLATFORM_ESP32:
|
if self.platform == KISS.PLATFORM_ESP32:
|
||||||
RNS.log("Resetting ESP32-based device before configuration...", RNS.LOG_VERBOSE)
|
self.display = True
|
||||||
self.hard_reset()
|
|
||||||
|
|
||||||
self.online = True
|
|
||||||
RNS.log("Serial port "+self.port+" is now open")
|
RNS.log("Serial port "+self.port+" is now open")
|
||||||
RNS.log("Configuring RNode interface...", RNS.LOG_VERBOSE)
|
RNS.log("Configuring RNode interface...", RNS.LOG_VERBOSE)
|
||||||
self.initRadio()
|
self.initRadio()
|
||||||
if (self.validateRadioState()):
|
if (self.validateRadioState()):
|
||||||
self.interface_ready = True
|
self.interface_ready = True
|
||||||
RNS.log(str(self)+" is configured and powered up")
|
RNS.log(str(self)+" is configured and powered up")
|
||||||
sleep(1.0)
|
sleep(0.3)
|
||||||
|
self.online = True
|
||||||
else:
|
else:
|
||||||
RNS.log("After configuring "+str(self)+", the reported radio parameters did not match your configuration.", RNS.LOG_ERROR)
|
RNS.log("After configuring "+str(self)+", the reported radio parameters did not match your configuration.", RNS.LOG_ERROR)
|
||||||
RNS.log("Make sure that your hardware actually supports the parameters specified in the configuration", RNS.LOG_ERROR)
|
RNS.log("Make sure that your hardware actually supports the parameters specified in the configuration", RNS.LOG_ERROR)
|
||||||
@@ -273,7 +275,51 @@ class RNodeInterface(Interface):
|
|||||||
kiss_command = bytes([KISS.FEND, KISS.CMD_DETECT, KISS.DETECT_REQ, KISS.FEND, KISS.CMD_FW_VERSION, 0x00, KISS.FEND, KISS.CMD_PLATFORM, 0x00, KISS.FEND, KISS.CMD_MCU, 0x00, KISS.FEND])
|
kiss_command = bytes([KISS.FEND, KISS.CMD_DETECT, KISS.DETECT_REQ, KISS.FEND, KISS.CMD_FW_VERSION, 0x00, KISS.FEND, KISS.CMD_PLATFORM, 0x00, KISS.FEND, KISS.CMD_MCU, 0x00, KISS.FEND])
|
||||||
written = self.serial.write(kiss_command)
|
written = self.serial.write(kiss_command)
|
||||||
if written != len(kiss_command):
|
if written != len(kiss_command):
|
||||||
raise IOError("An IO error occurred while detecting hardware for "+self(str))
|
raise IOError("An IO error occurred while detecting hardware for "+str(self))
|
||||||
|
|
||||||
|
def leave(self):
|
||||||
|
kiss_command = bytes([KISS.FEND, KISS.CMD_LEAVE, 0xFF, KISS.FEND])
|
||||||
|
written = self.serial.write(kiss_command)
|
||||||
|
if written != len(kiss_command):
|
||||||
|
raise IOError("An IO error occurred while sending host left command to device")
|
||||||
|
|
||||||
|
def enable_external_framebuffer(self):
|
||||||
|
if self.display != None:
|
||||||
|
kiss_command = bytes([KISS.FEND, KISS.CMD_FB_EXT, 0x01, KISS.FEND])
|
||||||
|
written = self.serial.write(kiss_command)
|
||||||
|
if written != len(kiss_command):
|
||||||
|
raise IOError("An IO error occurred while enabling external framebuffer on device")
|
||||||
|
|
||||||
|
def disable_external_framebuffer(self):
|
||||||
|
if self.display != None:
|
||||||
|
kiss_command = bytes([KISS.FEND, KISS.CMD_FB_EXT, 0x00, KISS.FEND])
|
||||||
|
written = self.serial.write(kiss_command)
|
||||||
|
if written != len(kiss_command):
|
||||||
|
raise IOError("An IO error occurred while disabling external framebuffer on device")
|
||||||
|
|
||||||
|
FB_PIXEL_WIDTH = 64
|
||||||
|
FB_BITS_PER_PIXEL = 1
|
||||||
|
FB_PIXELS_PER_BYTE = 8//FB_BITS_PER_PIXEL
|
||||||
|
FB_BYTES_PER_LINE = FB_PIXEL_WIDTH//FB_PIXELS_PER_BYTE
|
||||||
|
def display_image(self, imagedata):
|
||||||
|
if self.display != None:
|
||||||
|
lines = len(imagedata)//8
|
||||||
|
for line in range(lines):
|
||||||
|
line_start = line*RNodeInterface.FB_BYTES_PER_LINE
|
||||||
|
line_end = line_start+RNodeInterface.FB_BYTES_PER_LINE
|
||||||
|
line_data = bytes(imagedata[line_start:line_end])
|
||||||
|
self.write_framebuffer(line, line_data)
|
||||||
|
|
||||||
|
def write_framebuffer(self, line, line_data):
|
||||||
|
if self.display != None:
|
||||||
|
line_byte = line.to_bytes(1, byteorder="big", signed=False)
|
||||||
|
data = line_byte+line_data
|
||||||
|
escaped_data = KISS.escape(data)
|
||||||
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_FB_WRITE])+escaped_data+bytes([KISS.FEND])
|
||||||
|
|
||||||
|
written = self.serial.write(kiss_command)
|
||||||
|
if written != len(kiss_command):
|
||||||
|
raise IOError("An IO error occurred while writing framebuffer data device")
|
||||||
|
|
||||||
def hard_reset(self):
|
def hard_reset(self):
|
||||||
kiss_command = bytes([KISS.FEND, KISS.CMD_RESET, 0xf8, KISS.FEND])
|
kiss_command = bytes([KISS.FEND, KISS.CMD_RESET, 0xf8, KISS.FEND])
|
||||||
@@ -292,7 +338,7 @@ class RNodeInterface(Interface):
|
|||||||
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_FREQUENCY])+data+bytes([KISS.FEND])
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_FREQUENCY])+data+bytes([KISS.FEND])
|
||||||
written = self.serial.write(kiss_command)
|
written = self.serial.write(kiss_command)
|
||||||
if written != len(kiss_command):
|
if written != len(kiss_command):
|
||||||
raise IOError("An IO error occurred while configuring frequency for "+self(str))
|
raise IOError("An IO error occurred while configuring frequency for "+str(self))
|
||||||
|
|
||||||
def setBandwidth(self):
|
def setBandwidth(self):
|
||||||
c1 = self.bandwidth >> 24
|
c1 = self.bandwidth >> 24
|
||||||
@@ -304,35 +350,35 @@ class RNodeInterface(Interface):
|
|||||||
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_BANDWIDTH])+data+bytes([KISS.FEND])
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_BANDWIDTH])+data+bytes([KISS.FEND])
|
||||||
written = self.serial.write(kiss_command)
|
written = self.serial.write(kiss_command)
|
||||||
if written != len(kiss_command):
|
if written != len(kiss_command):
|
||||||
raise IOError("An IO error occurred while configuring bandwidth for "+self(str))
|
raise IOError("An IO error occurred while configuring bandwidth for "+str(self))
|
||||||
|
|
||||||
def setTXPower(self):
|
def setTXPower(self):
|
||||||
txp = bytes([self.txpower])
|
txp = bytes([self.txpower])
|
||||||
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_TXPOWER])+txp+bytes([KISS.FEND])
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_TXPOWER])+txp+bytes([KISS.FEND])
|
||||||
written = self.serial.write(kiss_command)
|
written = self.serial.write(kiss_command)
|
||||||
if written != len(kiss_command):
|
if written != len(kiss_command):
|
||||||
raise IOError("An IO error occurred while configuring TX power for "+self(str))
|
raise IOError("An IO error occurred while configuring TX power for "+str(self))
|
||||||
|
|
||||||
def setSpreadingFactor(self):
|
def setSpreadingFactor(self):
|
||||||
sf = bytes([self.sf])
|
sf = bytes([self.sf])
|
||||||
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_SF])+sf+bytes([KISS.FEND])
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_SF])+sf+bytes([KISS.FEND])
|
||||||
written = self.serial.write(kiss_command)
|
written = self.serial.write(kiss_command)
|
||||||
if written != len(kiss_command):
|
if written != len(kiss_command):
|
||||||
raise IOError("An IO error occurred while configuring spreading factor for "+self(str))
|
raise IOError("An IO error occurred while configuring spreading factor for "+str(self))
|
||||||
|
|
||||||
def setCodingRate(self):
|
def setCodingRate(self):
|
||||||
cr = bytes([self.cr])
|
cr = bytes([self.cr])
|
||||||
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_CR])+cr+bytes([KISS.FEND])
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_CR])+cr+bytes([KISS.FEND])
|
||||||
written = self.serial.write(kiss_command)
|
written = self.serial.write(kiss_command)
|
||||||
if written != len(kiss_command):
|
if written != len(kiss_command):
|
||||||
raise IOError("An IO error occurred while configuring coding rate for "+self(str))
|
raise IOError("An IO error occurred while configuring coding rate for "+str(self))
|
||||||
|
|
||||||
def setRadioState(self, state):
|
def setRadioState(self, state):
|
||||||
self.state = state
|
self.state = state
|
||||||
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_RADIO_STATE])+bytes([state])+bytes([KISS.FEND])
|
kiss_command = bytes([KISS.FEND])+bytes([KISS.CMD_RADIO_STATE])+bytes([state])+bytes([KISS.FEND])
|
||||||
written = self.serial.write(kiss_command)
|
written = self.serial.write(kiss_command)
|
||||||
if written != len(kiss_command):
|
if written != len(kiss_command):
|
||||||
raise IOError("An IO error occurred while configuring radio state for "+self(str))
|
raise IOError("An IO error occurred while configuring radio state for "+str(self))
|
||||||
|
|
||||||
def validate_firmware(self):
|
def validate_firmware(self):
|
||||||
if (self.maj_version >= RNodeInterface.REQUIRED_FW_VER_MAJ):
|
if (self.maj_version >= RNodeInterface.REQUIRED_FW_VER_MAJ):
|
||||||
@@ -344,14 +390,16 @@ class RNodeInterface(Interface):
|
|||||||
|
|
||||||
RNS.log("The firmware version of the connected RNode is "+str(self.maj_version)+"."+str(self.min_version), RNS.LOG_ERROR)
|
RNS.log("The firmware version of the connected RNode is "+str(self.maj_version)+"."+str(self.min_version), RNS.LOG_ERROR)
|
||||||
RNS.log("This version of Reticulum requires at least version "+str(RNodeInterface.REQUIRED_FW_VER_MAJ)+"."+str(RNodeInterface.REQUIRED_FW_VER_MIN), RNS.LOG_ERROR)
|
RNS.log("This version of Reticulum requires at least version "+str(RNodeInterface.REQUIRED_FW_VER_MAJ)+"."+str(RNodeInterface.REQUIRED_FW_VER_MIN), RNS.LOG_ERROR)
|
||||||
RNS.log("Please update your RNode firmware with rnodeconf (https://github.com/markqvist/rnodeconfigutil/)")
|
RNS.log("Please update your RNode firmware with rnodeconf from https://github.com/markqvist/rnodeconfigutil/")
|
||||||
RNS.panic()
|
RNS.panic()
|
||||||
|
|
||||||
|
|
||||||
def validateRadioState(self):
|
def validateRadioState(self):
|
||||||
RNS.log("Wating for radio configuration validation for "+str(self)+"...", RNS.LOG_VERBOSE)
|
RNS.log("Wating for radio configuration validation for "+str(self)+"...", RNS.LOG_VERBOSE)
|
||||||
sleep(0.25);
|
sleep(0.25);
|
||||||
if (self.frequency != self.r_frequency):
|
|
||||||
|
self.validcfg = True
|
||||||
|
if (self.r_frequency != None and abs(self.frequency - int(self.r_frequency)) > 100):
|
||||||
RNS.log("Frequency mismatch", RNS.LOG_ERROR)
|
RNS.log("Frequency mismatch", RNS.LOG_ERROR)
|
||||||
self.validcfg = False
|
self.validcfg = False
|
||||||
if (self.bandwidth != self.r_bandwidth):
|
if (self.bandwidth != self.r_bandwidth):
|
||||||
@@ -634,8 +682,13 @@ class RNodeInterface(Interface):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
RNS.log("Error while reconnecting port, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
RNS.log("Error while reconnecting port, the contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||||
|
|
||||||
RNS.log("Reconnected serial port for "+str(self))
|
if self.online:
|
||||||
|
RNS.log("Reconnected serial port for "+str(self))
|
||||||
|
|
||||||
|
def detach(self):
|
||||||
|
self.disable_external_framebuffer()
|
||||||
|
self.setRadioState(KISS.RADIO_STATE_OFF)
|
||||||
|
self.leave()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "RNodeInterface["+str(self.name)+"]"
|
return "RNodeInterface["+str(self.name)+"]"
|
||||||
|
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import glob
|
import glob
|
||||||
|
import RNS.Interfaces.Android
|
||||||
|
|
||||||
modules = glob.glob(os.path.dirname(__file__)+"/*.py")
|
modules = glob.glob(os.path.dirname(__file__)+"/*.py")
|
||||||
__all__ = [ os.path.basename(f)[:-3] for f in modules if not f.endswith('__init__.py')]
|
__all__ = [ os.path.basename(f)[:-3] for f in modules if not f.endswith('__init__.py')]
|
||||||
+4
-2
@@ -29,6 +29,9 @@ if get_platform() == "android":
|
|||||||
from .Interfaces import TCPInterface
|
from .Interfaces import TCPInterface
|
||||||
from .Interfaces import UDPInterface
|
from .Interfaces import UDPInterface
|
||||||
from .Interfaces import I2PInterface
|
from .Interfaces import I2PInterface
|
||||||
|
from .Interfaces.Android import RNodeInterface
|
||||||
|
from .Interfaces.Android import SerialInterface
|
||||||
|
from .Interfaces.Android import KISSInterface
|
||||||
else:
|
else:
|
||||||
from .Interfaces import *
|
from .Interfaces import *
|
||||||
|
|
||||||
@@ -911,7 +914,6 @@ class Reticulum:
|
|||||||
|
|
||||||
if mode == None:
|
if mode == None:
|
||||||
mode = Interface.Interface.MODE_FULL
|
mode = Interface.Interface.MODE_FULL
|
||||||
|
|
||||||
interface.mode = mode
|
interface.mode = mode
|
||||||
|
|
||||||
if configured_bitrate:
|
if configured_bitrate:
|
||||||
@@ -922,7 +924,7 @@ class Reticulum:
|
|||||||
else:
|
else:
|
||||||
interface.ifac_size = 8
|
interface.ifac_size = 8
|
||||||
|
|
||||||
interface.announce_cap = announce_cap
|
interface.announce_cap = announce_cap if announce_cap != None else Reticulum.ANNOUNCE_CAP/100.0
|
||||||
interface.announce_rate_target = announce_rate_target
|
interface.announce_rate_target = announce_rate_target
|
||||||
interface.announce_rate_grace = announce_rate_grace
|
interface.announce_rate_grace = announce_rate_grace
|
||||||
interface.announce_rate_penalty = announce_rate_penalty
|
interface.announce_rate_penalty = announce_rate_penalty
|
||||||
|
|||||||
+31
-15
@@ -618,27 +618,43 @@ class Transport:
|
|||||||
should_transmit = False
|
should_transmit = False
|
||||||
|
|
||||||
elif interface.mode == RNS.Interfaces.Interface.Interface.MODE_ROAMING:
|
elif interface.mode == RNS.Interfaces.Interface.Interface.MODE_ROAMING:
|
||||||
from_interface = Transport.next_hop_interface(packet.destination_hash)
|
local_destination = next((d for d in Transport.destinations if d.hash == packet.destination_hash), None)
|
||||||
if from_interface == None or not hasattr(from_interface, "mode"):
|
if local_destination != None:
|
||||||
RNS.log("Blocking announce broadcast on "+str(interface)+" since next hop interface is non-existing or has no mode configured", RNS.LOG_EXTREME)
|
# RNS.log("Allowing announce broadcast on roaming-mode interface from instance-local destination", RNS.LOG_EXTREME)
|
||||||
should_transmit = False
|
pass
|
||||||
else:
|
else:
|
||||||
if from_interface.mode == RNS.Interfaces.Interface.Interface.MODE_ROAMING:
|
from_interface = Transport.next_hop_interface(packet.destination_hash)
|
||||||
RNS.log("Blocking announce broadcast on "+str(interface)+" due to roaming-mode next-hop interface", RNS.LOG_EXTREME)
|
if from_interface == None or not hasattr(from_interface, "mode"):
|
||||||
should_transmit = False
|
|
||||||
elif from_interface.mode == RNS.Interfaces.Interface.Interface.MODE_BOUNDARY:
|
|
||||||
RNS.log("Blocking announce broadcast on "+str(interface)+" due to boundary-mode next-hop interface", RNS.LOG_EXTREME)
|
|
||||||
should_transmit = False
|
should_transmit = False
|
||||||
|
if from_interface == None:
|
||||||
|
RNS.log("Blocking announce broadcast on "+str(interface)+" since next hop interface doesn't exist", RNS.LOG_EXTREME)
|
||||||
|
elif not hasattr(from_interface, "mode"):
|
||||||
|
RNS.log("Blocking announce broadcast on "+str(interface)+" since next hop interface has no mode configured", RNS.LOG_EXTREME)
|
||||||
|
else:
|
||||||
|
if from_interface.mode == RNS.Interfaces.Interface.Interface.MODE_ROAMING:
|
||||||
|
RNS.log("Blocking announce broadcast on "+str(interface)+" due to roaming-mode next-hop interface", RNS.LOG_EXTREME)
|
||||||
|
should_transmit = False
|
||||||
|
elif from_interface.mode == RNS.Interfaces.Interface.Interface.MODE_BOUNDARY:
|
||||||
|
RNS.log("Blocking announce broadcast on "+str(interface)+" due to boundary-mode next-hop interface", RNS.LOG_EXTREME)
|
||||||
|
should_transmit = False
|
||||||
|
|
||||||
elif interface.mode == RNS.Interfaces.Interface.Interface.MODE_BOUNDARY:
|
elif interface.mode == RNS.Interfaces.Interface.Interface.MODE_BOUNDARY:
|
||||||
from_interface = Transport.next_hop_interface(packet.destination_hash)
|
local_destination = next((d for d in Transport.destinations if d.hash == packet.destination_hash), None)
|
||||||
if from_interface == None or not hasattr(from_interface, "mode"):
|
if local_destination != None:
|
||||||
RNS.log("Blocking announce broadcast on "+str(interface)+" since next hop interface is non-existing or has no mode configured", RNS.LOG_EXTREME)
|
# RNS.log("Allowing announce broadcast on boundary-mode interface from instance-local destination", RNS.LOG_EXTREME)
|
||||||
should_transmit = False
|
pass
|
||||||
else:
|
else:
|
||||||
if from_interface.mode == RNS.Interfaces.Interface.Interface.MODE_ROAMING:
|
from_interface = Transport.next_hop_interface(packet.destination_hash)
|
||||||
RNS.log("Blocking announce broadcast on "+str(interface)+" due to roaming-mode next-hop interface", RNS.LOG_EXTREME)
|
if from_interface == None or not hasattr(from_interface, "mode"):
|
||||||
should_transmit = False
|
should_transmit = False
|
||||||
|
if from_interface == None:
|
||||||
|
RNS.log("Blocking announce broadcast on "+str(interface)+" since next hop interface doesn't exist", RNS.LOG_EXTREME)
|
||||||
|
elif not hasattr(from_interface, "mode"):
|
||||||
|
RNS.log("Blocking announce broadcast on "+str(interface)+" since next hop interface has no mode configured", RNS.LOG_EXTREME)
|
||||||
|
else:
|
||||||
|
if from_interface.mode == RNS.Interfaces.Interface.Interface.MODE_ROAMING:
|
||||||
|
RNS.log("Blocking announce broadcast on "+str(interface)+" due to roaming-mode next-hop interface", RNS.LOG_EXTREME)
|
||||||
|
should_transmit = False
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Currently, annouces originating locally are always
|
# Currently, annouces originating locally are always
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
@@ -538,7 +538,7 @@ def main():
|
|||||||
parser.add_argument("-x", '--interactive', action='store_true', default=False, help="enter interactive mode")
|
parser.add_argument("-x", '--interactive', action='store_true', default=False, help="enter interactive mode")
|
||||||
parser.add_argument("-b", '--no-announce', action='store_true', default=False, help="don't announce at program start")
|
parser.add_argument("-b", '--no-announce', action='store_true', default=False, help="don't announce at program start")
|
||||||
parser.add_argument('-a', metavar="allowed_hash", dest="allowed", action='append', help="accept from this identity", type=str)
|
parser.add_argument('-a', metavar="allowed_hash", dest="allowed", action='append', help="accept from this identity", type=str)
|
||||||
parser.add_argument('-n', '--noauth', action='store_true', default=False, help="accept files from anyone")
|
parser.add_argument('-n', '--noauth', action='store_true', default=False, help="accept commands from anyone")
|
||||||
parser.add_argument('-N', '--noid', action='store_true', default=False, help="don't identify to listener")
|
parser.add_argument('-N', '--noid', action='store_true', default=False, help="don't identify to listener")
|
||||||
parser.add_argument("-d", '--detailed', action='store_true', default=False, help="show detailed result output")
|
parser.add_argument("-d", '--detailed', action='store_true', default=False, help="show detailed result output")
|
||||||
parser.add_argument("-m", action='store_true', dest="mirror", default=False, help="mirror exit code of remote command")
|
parser.add_argument("-m", action='store_true', dest="mirror", default=False, help="mirror exit code of remote command")
|
||||||
|
|||||||
+11
-6
@@ -57,10 +57,11 @@ LOG_FILE = 0x92
|
|||||||
|
|
||||||
LOG_MAXSIZE = 5*1024*1024
|
LOG_MAXSIZE = 5*1024*1024
|
||||||
|
|
||||||
loglevel = LOG_NOTICE
|
loglevel = LOG_NOTICE
|
||||||
logfile = None
|
logfile = None
|
||||||
logdest = LOG_STDOUT
|
logdest = LOG_STDOUT
|
||||||
logtimefmt = "%Y-%m-%d %H:%M:%S"
|
logtimefmt = "%Y-%m-%d %H:%M:%S"
|
||||||
|
compact_log_fmt = False
|
||||||
|
|
||||||
instance_random = random.Random()
|
instance_random = random.Random()
|
||||||
instance_random.seed(os.urandom(10))
|
instance_random.seed(os.urandom(10))
|
||||||
@@ -101,10 +102,14 @@ def timestamp_str(time_s):
|
|||||||
return time.strftime(logtimefmt, timestamp)
|
return time.strftime(logtimefmt, timestamp)
|
||||||
|
|
||||||
def log(msg, level=3, _override_destination = False):
|
def log(msg, level=3, _override_destination = False):
|
||||||
global _always_override_destination
|
global _always_override_destination, compact_log_fmt
|
||||||
|
|
||||||
if loglevel >= level:
|
if loglevel >= level:
|
||||||
logstring = "["+timestamp_str(time.time())+"] ["+loglevelname(level)+"] "+msg
|
if not compact_log_fmt:
|
||||||
|
logstring = "["+timestamp_str(time.time())+"] ["+loglevelname(level)+"] "+msg
|
||||||
|
else:
|
||||||
|
logstring = "["+timestamp_str(time.time())+"] "+msg
|
||||||
|
|
||||||
logging_lock.acquire()
|
logging_lock.acquire()
|
||||||
|
|
||||||
if (logdest == LOG_STDOUT or _always_override_destination or _override_destination):
|
if (logdest == LOG_STDOUT or _always_override_destination or _override_destination):
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
__version__ = "0.3.14"
|
__version__ = "0.4.0"
|
||||||
Vendored
+7
-1
@@ -8,6 +8,12 @@ def get_platform():
|
|||||||
import sys
|
import sys
|
||||||
return sys.platform
|
return sys.platform
|
||||||
|
|
||||||
|
def is_linux():
|
||||||
|
if get_platform() == "linux":
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
def is_darwin():
|
def is_darwin():
|
||||||
if get_platform() == "darwin":
|
if get_platform() == "darwin":
|
||||||
return True
|
return True
|
||||||
@@ -42,4 +48,4 @@ def cryptography_old_api():
|
|||||||
if cryptography.__version__ == "2.8":
|
if cryptography.__version__ == "2.8":
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
# Sphinx build info version 1
|
# Sphinx build info version 1
|
||||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||||
config: f917c18521ed6a10811c2a61e23b9822
|
config: 8cba159fb1f90a14d69c2399fad83a44
|
||||||
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
|
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
|
||||||
VERSION: '0.3.14 beta',
|
VERSION: '0.4.0 beta',
|
||||||
LANGUAGE: 'en',
|
LANGUAGE: 'en',
|
||||||
COLLAPSE_INDEX: false,
|
COLLAPSE_INDEX: false,
|
||||||
BUILDER: 'html',
|
BUILDER: 'html',
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Support Reticulum" href="support.html" /><link rel="prev" title="Building Networks" href="networks.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Support Reticulum" href="support.html" /><link rel="prev" title="Building Networks" href="networks.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>Code Examples - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>Code Examples - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
||||||
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="#" /><link rel="search" title="Search" href="search.html" />
|
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="#" /><link rel="search" title="Search" href="search.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/><title>Index - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/><title>Index - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -165,7 +165,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Using Reticulum on Your System" href="using.html" /><link rel="prev" title="What is Reticulum?" href="whatis.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Using Reticulum on Your System" href="using.html" /><link rel="prev" title="What is Reticulum?" href="whatis.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>Getting Started Fast - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>Getting Started Fast - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Supported Interfaces" href="interfaces.html" /><link rel="prev" title="Understanding Reticulum" href="understanding.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Supported Interfaces" href="interfaces.html" /><link rel="prev" title="Understanding Reticulum" href="understanding.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>Communications Hardware - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>Communications Hardware - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="What is Reticulum?" href="whatis.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="What is Reticulum?" href="whatis.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="#"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="#"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Building Networks" href="networks.html" /><link rel="prev" title="Communications Hardware" href="hardware.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Building Networks" href="networks.html" /><link rel="prev" title="Communications Hardware" href="hardware.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>Supported Interfaces - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>Supported Interfaces - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Code Examples" href="examples.html" /><link rel="prev" title="Supported Interfaces" href="interfaces.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Code Examples" href="examples.html" /><link rel="prev" title="Supported Interfaces" href="interfaces.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>Building Networks - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>Building Networks - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="prev" title="Support Reticulum" href="support.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="prev" title="Support Reticulum" href="support.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>API Reference - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>API Reference - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
||||||
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="#" />
|
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="#" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/><title>Search - Reticulum Network Stack 0.3.14 beta documentation</title><link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/><title>Search - Reticulum Network Stack 0.4.0 beta documentation</title><link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo-extensions.css?digest=30d1aed668e5c3a91c3e3bf6a60b675221979f0e" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo-extensions.css?digest=30d1aed668e5c3a91c3e3bf6a60b675221979f0e" />
|
||||||
@@ -138,7 +138,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="#" role="search">
|
</a><form class="sidebar-search-container" method="get" action="#" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="API Reference" href="reference.html" /><link rel="prev" title="Code Examples" href="examples.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="API Reference" href="reference.html" /><link rel="prev" title="Code Examples" href="examples.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>Support Reticulum - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>Support Reticulum - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Communications Hardware" href="hardware.html" /><link rel="prev" title="Using Reticulum on Your System" href="using.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Communications Hardware" href="hardware.html" /><link rel="prev" title="Using Reticulum on Your System" href="using.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>Understanding Reticulum - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>Understanding Reticulum - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Understanding Reticulum" href="understanding.html" /><link rel="prev" title="Getting Started Fast" href="gettingstartedfast.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Understanding Reticulum" href="understanding.html" /><link rel="prev" title="Getting Started Fast" href="gettingstartedfast.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>Using Reticulum on Your System - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>Using Reticulum on Your System - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Getting Started Fast" href="gettingstartedfast.html" /><link rel="prev" title="Reticulum Network Stack Manual" href="index.html" />
|
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Getting Started Fast" href="gettingstartedfast.html" /><link rel="prev" title="Reticulum Network Stack Manual" href="index.html" />
|
||||||
|
|
||||||
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
<meta name="generator" content="sphinx-5.2.2, furo 2022.09.29"/>
|
||||||
<title>What is Reticulum? - Reticulum Network Stack 0.3.14 beta documentation</title>
|
<title>What is Reticulum? - Reticulum Network Stack 0.4.0 beta documentation</title>
|
||||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=d81277517bee4d6b0349d71bb2661d4890b5617c" />
|
||||||
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-center">
|
<div class="header-center">
|
||||||
<a href="index.html"><div class="brand">Reticulum Network Stack 0.3.14 beta documentation</div></a>
|
<a href="index.html"><div class="brand">Reticulum Network Stack 0.4.0 beta documentation</div></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
<div class="header-right">
|
||||||
<div class="theme-toggle-container theme-toggle-header">
|
<div class="theme-toggle-container theme-toggle-header">
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
<img class="sidebar-logo" src="_static/rns_logo_512.png" alt="Logo"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="sidebar-brand-text">Reticulum Network Stack 0.3.14 beta documentation</span>
|
<span class="sidebar-brand-text">Reticulum Network Stack 0.4.0 beta documentation</span>
|
||||||
|
|
||||||
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
|
||||||
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ setuptools.setup(
|
|||||||
'rnpath=RNS.Utilities.rnpath:main',
|
'rnpath=RNS.Utilities.rnpath:main',
|
||||||
'rncp=RNS.Utilities.rncp:main',
|
'rncp=RNS.Utilities.rncp:main',
|
||||||
'rnx=RNS.Utilities.rnx:main',
|
'rnx=RNS.Utilities.rnx:main',
|
||||||
|
'rnodeconf=RNS.Utilities.rnodeconf:main',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
|
|||||||
Reference in new issue
Block a user