|
|
@ -93,9 +93,15 @@ class LoraAprsKissTnc(LoRa): |
|
|
|
codingrate = CODING_RATE.CR4_5 |
|
|
|
codingrate = CODING_RATE.CR4_5 |
|
|
|
|
|
|
|
|
|
|
|
self.set_coding_rate(codingrate) |
|
|
|
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) |
|
|
|
self.set_pa_config(paSelect, MaxoutputPower, outputPower) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Set PA to +20dBm |
|
|
|
|
|
|
|
self.set_pa_dac(1) |
|
|
|
|
|
|
|
|
|
|
|
self.set_max_payload_length(255) |
|
|
|
self.set_max_payload_length(255) |
|
|
|
self.set_dio_mapping([0] * 6) |
|
|
|
self.set_dio_mapping([0] * 6) |
|
|
|
self.server = server |
|
|
|
self.server = server |
|
|
|