mirror of
https://github.com/markqvist/LXMF
synced 2026-11-27 13:52:19 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5a960b2df | ||
|
|
a35e522e75 | ||
|
|
a810be316f | ||
|
|
741b66aab2 | ||
|
|
d767d40c5f | ||
|
|
2b3fa796a1 | ||
|
|
f6cc9fd1cf | ||
|
|
4b13d7188c |
No files matched your search
+30
-1
@@ -14,4 +14,33 @@ FIELD_AUDIO = 0x07
|
|||||||
FIELD_THREAD = 0x08
|
FIELD_THREAD = 0x08
|
||||||
FIELD_COMMANDS = 0x09
|
FIELD_COMMANDS = 0x09
|
||||||
FIELD_RESULTS = 0x0A
|
FIELD_RESULTS = 0x0A
|
||||||
FIELD_GROUP = 0x0B
|
FIELD_GROUP = 0x0B
|
||||||
|
|
||||||
|
# Audio modes for the data structure in FIELD_AUDIO
|
||||||
|
|
||||||
|
# Codec2 Audio Modes
|
||||||
|
AM_CODEC2_450PWB = 0x01
|
||||||
|
AM_CODEC2_450 = 0x02
|
||||||
|
AM_CODEC2_700C = 0x03
|
||||||
|
AM_CODEC2_1200 = 0x04
|
||||||
|
AM_CODEC2_1300 = 0x05
|
||||||
|
AM_CODEC2_1400 = 0x06
|
||||||
|
AM_CODEC2_1600 = 0x07
|
||||||
|
AM_CODEC2_2400 = 0x08
|
||||||
|
AM_CODEC2_3200 = 0x09
|
||||||
|
|
||||||
|
# Opus Audio Modes
|
||||||
|
AM_OPUS_OGG = 0x10
|
||||||
|
AM_OPUS_LBW = 0x11
|
||||||
|
AM_OPUS_MBW = 0x12
|
||||||
|
AM_OPUS_PTT = 0x13
|
||||||
|
AM_OPUS_RT_HDX = 0x14
|
||||||
|
AM_OPUS_RT_FDX = 0x15
|
||||||
|
AM_OPUS_STANDARD = 0x16
|
||||||
|
AM_OPUS_HQ = 0x17
|
||||||
|
AM_OPUS_BROADCAST = 0x18
|
||||||
|
AM_OPUS_LOSSLESS = 0x19
|
||||||
|
|
||||||
|
# Custom, unspecified audio mode, the
|
||||||
|
# client must determined it itself
|
||||||
|
AM_CUSTOM = 0xFF
|
||||||
+3
-2
@@ -980,6 +980,7 @@ class LXMRouter:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def delivery_packet(self, data, packet):
|
def delivery_packet(self, data, packet):
|
||||||
|
packet.prove()
|
||||||
try:
|
try:
|
||||||
if packet.destination_type != RNS.Destination.LINK:
|
if packet.destination_type != RNS.Destination.LINK:
|
||||||
lxmf_data = b""
|
lxmf_data = b""
|
||||||
@@ -997,8 +998,8 @@ class LXMRouter:
|
|||||||
RNS.log("Error while retrieving physical link stats for LXMF delivery packet: "+str(e), RNS.LOG_ERROR)
|
RNS.log("Error while retrieving physical link stats for LXMF delivery packet: "+str(e), RNS.LOG_ERROR)
|
||||||
|
|
||||||
phy_stats = {"rssi": packet.rssi, "snr": packet.snr, "q": packet.q}
|
phy_stats = {"rssi": packet.rssi, "snr": packet.snr, "q": packet.q}
|
||||||
if self.lxmf_delivery(lxmf_data, packet.destination_type, phy_stats=phy_stats):
|
|
||||||
packet.prove()
|
self.lxmf_delivery(lxmf_data, packet.destination_type, phy_stats=phy_stats)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
RNS.log("Exception occurred while parsing incoming LXMF data.", RNS.LOG_ERROR)
|
RNS.log("Exception occurred while parsing incoming LXMF data.", RNS.LOG_ERROR)
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
__version__ = "0.4.2"
|
__version__ = "0.4.4"
|
||||||
Reference in new issue
Block a user