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

    PyGate code for GPy with LTE backhaul sending decoded values direct to azure iot hub

    Scheduled Pinned Locked Moved GPy
    2 Posts 2 Posters 79 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
      hjojohan
      last edited by

      Hi i want to remove the usage of a lorawanserver step and send lorawan sensordata direct from pygate to azure iot hub using gpy/ LTE sim. Is it possible to omit the packetforwarder and send data in another fashion?

      We need a small setup from a solarpowered pygate which shall be placed in the outback..

      Any ideas or help much appriciated

      All the best
      / Johan

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        Hi,
        In theory this should be possible (note that I have no prior experience in azure iot)
        The Pygate basically forwards a JSON containing the data to the LoraWAN server, you can change the server to redirect to an azure iot hub, but I imagine the azure iot hub cannot work directly with the packets forwarded, meaning you will have to write some adaptation in C and compile custom firmware. I can link you to the file that will need changing:
        https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/esp32/pygate/lora_pkt_fwd/lora_pkt_fwd.c#L1491
        this test case falls through for Lora packets with a correct CRC, then the JSON is asembled based on the RF receive data. I think you will have to make some changes there in order to get the thing working for azure Iot.

        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