chandrawi / LoRaRF-Python

Python library for basic transmitting and receiving data using LoRa and FSK modem
MIT License
29 stars 15 forks source link

Receiver not working #16

Open Jorge-E-Guerrero opened 11 months ago

Jorge-E-Guerrero commented 11 months ago

Hi,

I'm trying to run the proyect on a Raspberry Pi 4 with Raspberry OS 32 bits with the Semtech SX1262 LoRa Module.

When running the receiver_listen.py or receiver_continuous.py shows the following message:

Begin LoRa radio Set RF module to use TCXO as clock reference Set frequency to 915 Mhz Set RX gain to boosted gain Set modulation parameters: Spreading factor = 7 Bandwidth = 125 kHz Coding rate = 4/5 Set packet parameters: Explicit header type Preamble length = 12 Payload Length = 15 CRC on Set syncronize word to 0x3444

-- LoRa Receiver Listen --

]©(nBcâ-¨ëüó?¨V´ã£�xº9ûß▒Ï{ 98

Packet status: RSSI = -29.50 dBm | SNR = 10.50 dB

It seems like the LoRa Radio works fine, but is not receiving any real message, and shows an initial corrupt message. Im sending packets from an arduino program with the same sync word, frecuency and bandwidth.

I've tried using both SPI bus but the results are the same.

chandrawi commented 11 months ago

Is the corrupt message only happen once and then correct message received? Or the corrupt message always happen? Do you use Explicit or Implicit package type?

Jorge-E-Guerrero commented 11 months ago

It happens everytime I run the script and just receive that corrupt message. I use the explicit package. Also I tried to run the transmitter.py but the receivers still not working.

WVDVCR commented 11 months ago

I also have a same problem with receive funciton, I tied to convert python to C for SMT32 to receive data however it stuck, from transmitter still keep transmit but my STM32 can't recveive anything.

aditya-arv13 commented 11 months ago

I am also experiencing the same problem with receiver.py. The corrupt message is received once and then it struck forever with no messages.

LeeKoTo commented 9 months ago

When I run receive_continuous.py,I meet the same problem.So I check the Mode step by step, after Setfrequency chip mode will turn from 0x20 to 0x40. So I try to commented out the code self.calibrateImage(calFreqMin, calFreqMax) in Function SetFrequency. And then run receive_continuous.py it shows the correct message.