raspberrypi-tw / lora-sx1276

Sample code for LoRa SX1276
GNU Affero General Public License v3.0
55 stars 17 forks source link

LoRA setMode Overwrite to 0 on Init Object Lora #1

Open KachPro opened 5 years ago

KachPro commented 5 years ago

/opt/GW-Lorawan/lora-sx1276/SX127x/board_config.py:58: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings. GPIO.setup(BOARD.LED, GPIO.OUT) 128 --> SLEEP MODE 1 --> FSK_STDBY 0 --> ????????? Traceback (most recent call last): File "lora_forwarder.py", line 119, in lora = LoRaSocket(verbose=False) File "lora_forwarder.py", line 83, in init super(LoRaSocket, self).init(verbose) File "/opt/GW-Lorawan/lora-sx1276/SX127x/LoRa.py", line 101, in init self.rx_chain_calibration(calibration_freq) File "/opt/GW-Lorawan/lora-sx1276/SX127x/LoRa.py", line 858, in rx_chain_calibration self.set_freq(freq_bkup) File "/opt/GW-Lorawan/lora-sx1276/SX127x/LoRa.py", line 284, in set_freq assert self.mode == MODE.SLEEP or self.mode == MODE.STDBY or self.mode == MODE.FSK_STDBY AssertionError

Jaumehrt99 commented 1 year ago

Hi!

I have the same error! How did you fix it?

Thanks!