Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive incorrect data on Pycom LoPy LoRa #30

Open
nilampradhan2 opened this issue Apr 5, 2018 · 0 comments
Open

Receive incorrect data on Pycom LoPy LoRa #30

nilampradhan2 opened this issue Apr 5, 2018 · 0 comments

Comments

@nilampradhan2
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant