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

    Lora -> TTN-console working. Howto open Pybytes payload ?

    Scheduled Pinned Locked Moved Support & Troubleshooting
    pybytes payloadlora ttn-consollora ttn
    6 Posts 2 Posters 846 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.
    • H Offline
      hetifi
      last edited by hetifi

      I have three bluetooth temperature sensors. If I use a wifi, the pybytes dashboard shows the sensors nicely.

      However, I have a real Lora gateway that I would like to use.
      I made the ttn-console a new ABP device. Then copy the required numbers to the pybytes_config.json file.

      Now I can see traffic in the TTN console, but how can I open traffic?

      I can see that payload is 20 bytes
      "payload": "QHEZASYAAAACkoM02WSTMZOXxg4 =", I assume there are three temperatures here. (Or this only one temperature Float32 format)

      If anyone would know how to write the Payload format-decoder this data.

      Is Pybytes payload documented somewhere? If I could write values ​​in plain texts, I could make a mqtt query on the ttn server.

      Or does Pybytes have a similar feature?
      Or howto route Lopy4Lora-->TTN--> Pybytes dashboard ?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @hetifi
        last edited by

        @hetifi The payload is base64 encoded and encrypted. So you cannot see it's plain content at the gateway traffic monitor. At the device traffic monitor you should see the decoded and decrypted data as hex string. To understand it's content, you have to know how it was coded when sending.

        1 Reply Last reply Reply Quote 0
        • H Offline
          hetifi
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • H Offline
            hetifi
            last edited by

            @robert-hh
            If look device data: payload: 9E050233335341
            Line in Main.py:
            pybytes.send_virtual_pin_value(False, id_payload , (ruuvitag.temperature))

            But maybe is more wise code tree temperatures in one transmission my own and not use pybytes.send_virtual_pin_value.

            robert-hhR H 2 Replies Last reply Reply Quote 0
            • robert-hhR Offline
              robert-hh @hetifi
              last edited by

              @hetifi The last four bytes look by chance like ASCII "33SA". Do you have a binary view of the data you are sending?
              And yes, it may be better to use direct socket send.

              1 Reply Last reply Reply Quote 0
              • H Offline
                hetifi @hetifi
                last edited by hetifi

                @hetifi said in Lora -> TTN-console working. Howto open Pybytes payload ?:

                @robert-hh
                If look device data: payload: 9E050233335341
                Line in Main.py:
                pybytes.send_virtual_pin_value(False, id_payload , (ruuvitag.temperature))

                But maybe is more wise code tree temperatures in one transmission my own and not use pybytes.send_virtual_pin_value.

                After one night sleep... 9E050233335341 is simply 13.2 (32-bit float)
                Convert here

                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