lopy received data into text conversion
-
how to convert lopy lora received data into text.
-
We are going to need more details about the format of the incoming data before we can help you out
-
@seb Thank you for reply.
I am receiving 'Hello mitcoe' message from USRP B200 in gnuradio by using matt gr lora transmitter with udp socket source. -
@nilam said in lopy received data into text conversion:
matt gr lora
Are you using LoRaWAN or raw LoRa?
-
-
This post is deleted! -
Can you share your code so I can get a better understanding of what is going on
-
You may want to check if changing rx_iq helps.
-
@seb import ubinascii
from network import LoRa
from machine import Pin
import socket
import machine
import timelora = LoRa(mode=LoRa.LORA, frequency=868000000, tx_power=14, bandwidth=LoRa.BW_250KHZ, sf=8, preamble=8, coding_rate=LoRa.CODING_4_8, power_mode=LoRa.ALWAYS_ON, tx_iq=False, rx_iq=False, adr=True, public=True, tx_retries=1, device_class=LoRa.CLASS_A)
s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
s.setblocking(False)
while True:
data = s.recv(64)
if(data):
print("Received data: "+"\n1",data)
print ("2",data.decode('utf-8'))
print("3",ubinascii.hexlify(data)) -
@jcaron Rx_iq set to False. if i set it True, lopy does not receive any data.
how can i set sampling rate?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login