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

    How to increase bytes when sending data in lopy using LoRa (raw) ?

    Scheduled Pinned Locked Moved LoPy
    lopydata ratelora
    5 Posts 3 Posters 2.3k Views 3 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.
    • R Offline
      ram2987
      last edited by

      Hi,
      I am using lopy and able to sent 64 bytes data using LoRa Nano-Gateway (Raw).But, I unable to send data more than 64 bytes.Any suggestion to send more 64 bytes?

      Code :
      On receive side,
      recv_ack = lora_sock.recv(512)

      Sender side,
      We tried socket option as below and played with value SO_DR 3,4,5 etc... and also tried sf values 7,8,9 etc...
      lora_sock.setsockopt(socket.SOL_LORA, socket.SO_DR, 4)

      1 Reply Last reply Reply Quote 0
      • B Offline
        bucknall
        last edited by

        Hi @ram2987,

        This has been reported previously as a bug and Daniel + the team are working on a firmware fix. Apologies if this has caused you any inconvenience!

        Thanks,

        Alex

        Developer Evangelist - Pycom

        R P 2 Replies Last reply Reply Quote 0
        • R Offline
          ram2987 @bucknall
          last edited by

          Hi @bucknall,

                    Thanks for the update.Kindly update us when the fix is applied.
          
          B 1 Reply Last reply Reply Quote 0
          • B Offline
            bucknall @ram2987
            last edited by

            @ram2987 I will do! Thanks for your patience!

            Developer Evangelist - Pycom

            1 Reply Last reply Reply Quote 0
            • P Offline
              pedro.costa @bucknall
              last edited by

              @bucknall
              I was wondering the same. I found that the necessary changes are on this line:

                  { MODEM_LORA, REG_LR_PAYLOADMAXLENGTH, 0x40 },\
              

              As 0x40 is 64 and is this that is limiting the payload size.

              1 Reply Last reply Reply Quote 1

              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