Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Not correctly decoding USRP data

    Scheduled Pinned Locked Moved LoPy
    lopy lora
    3 Posts 2 Posters 785 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nilam
      last edited by nilam

      I tried to send message 'Hello' from USRP, but LoPy LoRa not decoding it correctly.
      it receive some garbage data. What can i do to receive it correctly?

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @nilam
        last edited by

        @nilam without any further details of what you set up on both sides, it’s going to be extremely difficult for anyone to help you...

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          nilam @jcaron
          last edited by nilam

          @jcaron Thank you for reply, Sorry for giving less details.
          I am sending 'Hello mitcoe' message from file source as well as socket using USRP hardware and GNURadio (Matt- Gr-LoRa)
          Parameters :
          Frequency: 868MHz
          SF: 8
          Code rate: 4
          BW: 250KHz
          Sampling Rate: 250 KHz
          Header: True
          and 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 what i sent.

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

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom