+20dBm support.

This commit is contained in:
2022-02-08 21:23:22 +01:00
parent 94dd24c1b6
commit c8e6736619
3 changed files with 13 additions and 2 deletions

View File

@@ -22,3 +22,8 @@ All notable changes to this project will be documented in this file.
### Fixed
- LoRa APRS header (<\xff\x01) was not added to the payload, due to an indentation fault. Long live Python!
## [0.0.2] - 2022-02-08
### Added
- Support for 20dBm output power. Temporarily hard coded in source, but in next version it should be configurable via the configuration file.

View File

@@ -93,9 +93,15 @@ class LoraAprsKissTnc(LoRa):
codingrate = CODING_RATE.CR4_5
self.set_coding_rate(codingrate)
self.set_ocp_trim(100)
# Current limiter 180mA for +20dBm (100mA for 17dBm max)
self.set_ocp_trim(180)
self.set_pa_config(paSelect, MaxoutputPower, outputPower)
# Set PA to +20dBm
self.set_pa_dac(1)
self.set_max_payload_length(255)
self.set_dio_mapping([0] * 6)
self.server = server

View File

@@ -25,7 +25,7 @@ import configparser
# Read configuration file #
parser = configparser.ConfigParser()
parser.read('RPi-LoRa-KISS-TNC.ini')
parser.read('/home/marcel/ham/RPi-LoRa-KISS-TNC/RPi-LoRa-KISS-TNC.ini')
config_frequency = float(parser.get('LoRaSettings', 'frequency'))
config_preamble = int(parser.get('LoRaSettings', 'preamble'))