BastilleResearch / gr-lora

GNU Radio OOT module implementing the LoRa PHY, based on https://github.com/matt-knight/research/tree/master/2016_05_20_jailbreak
GNU General Public License v3.0
472 stars 92 forks source link

Receive incorrect data on Pycom LoPy LoRa #30

Open nilampradhan2 opened 6 years ago

nilampradhan2 commented 6 years ago

I am sending 'Hello mitcoe' message from file source as well as socket using USRP B200 hardware Parameters : Frequency: 868MHz SF: 8 Code rate: 4 BW: 250KHz Sampling Rate: 250 KHz Header: True and i want to receive this on Pycom LoPy LoRa node. same parameters on LoPy LoRa node. But i receive on LoPy LoRa some things like this Received data: 1 b'\xe7\xe7+\xfa\x00MB' 2 ��+�MB 3 b'e7e72bfa004d42' Rx_cnt:1 (rx_timestamp=676924426, rssi=-98, snr=0.0, sfrx=8, sftx=0, tx_trials=0) Received data: 1 b'\xe7\xe7\xeb\xfa\x00MB' 2 ����MB 3 b'e7e7ebfa004d42' Rx_cnt:2 (rx_timestamp=677851000, rssi=-98, snr=0.0, sfrx=8, sftx=0, tx_trials=0)

My LoPy code to receive data is: print("In Receive Mode") s.setblocking(False) while True: data = s.recv(64) if(data): print("Received data: "+"\n1",data) print ("2",data.decode('utf-8')) print("3",binascii.hexlify(data)) i+=1 rx2tx_data = 'Rx_cnt:'+str(i) print(rx2tx_data) print(lora.stats())

I am not able to receive correct data.

Also i am sending message multiple times but lora only receives twice or thrice.