projecthorus / wenet

Wenet ("The Swift One") - Transmit and Receive code for the Project Horus High-Speed Imagery Payload.
GNU General Public License v3.0
91 stars 10 forks source link

init_rfm98w.py throws an error #10

Closed dcmk1mr2 closed 8 months ago

dcmk1mr2 commented 8 months ago

pi@sstv:~/wenet/tx $ python3 init_rfm98w.py --frequency 443.424 Using deviation of 71797 Hz for Baud Rate 115200 bd. Mode <- SLEEP Traceback (most recent call last): File "/home/pi/wenet/tx/init_rfm98w.py", line 85, in setup_rfm98w(frequency=tx_freq, spi_device=args.spidevice, shutdown=args.shu tdown, deviation=deviation) File "/home/pi/wenet/tx/init_rfm98w.py", line 42, in setup_rfm98w lora.set_freq(frequency) File "/home/pi/wenet/tx/SX127x/LoRa.py", line 274, in set_freq assert self.mode == MODE.SLEEP or self.mode == MODE.STDBY or self.mode == MO DE.FSK_STDBY AssertionError Mode <- SLEEP MODE=SLEEP

darksidelemm commented 8 months ago

Hi,

This might be because your radio module is on a different SPI device chip select than the default.

You can change this selection by adding --spidevice 1 to the command (the default is 0)

dcmk1mr2 commented 8 months ago

Fixed! Thanks so much for the great SW!