I have an error when I run the tx_beacon.py script. It seems an invalid PA_DAC value is returned:
$ ./tx_beacon.py -f 868.0 --wait 1
Traceback (most recent call last):
File "/home/noroot/lora-sx1276/./tx_beacon.py", line 116, in <module>
print(lora)
File "/home/noroot/lora-sx1276/SX127x/LoRa.py", line 943, in __str__
s += " pa_dac %s\n" % ['default', 'PA_BOOST'][self.get_pa_dac()]
File "/home/noroot/lora-sx1276/SX127x/LoRa.py", line 56, in wrapper
return func(self, self.spi.xfer([register_address, 0])[1])
File "/home/noroot/lora-sx1276/SX127x/LoRa.py", line 816, in get_pa_dac
raise RuntimeError("Bad PA_DAC value %s" % hex(pa_dac))
RuntimeError: Bad PA_DAC value 0x0
If I comment the line 943 out the script at least does not fail but I am not able to receive any messages on another device:
I have an error when I run the
tx_beacon.py
script. It seems an invalidPA_DAC
value is returned:If I comment the line 943 out the script at least does not fail but I am not able to receive any messages on another device: