Tutorial: Using COM.LoRaWAN in UIFlow

  • I wrote a tutorial on using COM.LoRaWAN in UIFlow.
    This is my first tutorial at hackster.io, I would highly appreciate some feedback.


  • Global Moderator

    Hi @sodoku

    Great job! looks amazing, thank you for supporting and sharing it with the community!

  • Great job. Does this work the same with the old (blue) LoRaWAN module?

  • @lasniko you could reuse some parts of the tutorial, but the older blue module uses completely different AT-commands.

  • thank you very much for this very valuable information for a beginner like me.

  • Great Tutorial,

    please go on with it, would like to find an way to upload sensordata to TTN via ABP.
    I have only an singleGateWay here and it does not let my join via OTAA.

    I am stuck here.

    many greetins from danube/austria

  • Hello @sodoku. Many thanks for sharing the tutorial! I found it on m5stack.hackster.io and it helped me a lot. Registered two COM.LoRaWAN 868MHz modules sucessfully with TTN and managed to see uplinks (alas with long join latency and lots of retrying uplinks though I am in the very middle of Berlin - it seems coverage still has to improve a lot). I am still struggling with the adaption of the official P2P example. Especially regarding use with a sensor in a setup without use of buttons to initiate data requests. If you'd find the time to extend your tutorial his would be much appreciated.
    Also I wonder about the real life range of the modules. I have currently set them to 5V and cannot pull data beyond 20m distance, line of sight. Seems odd ... what are your experiences? Can this be enhanced using 12V? Maybe a faulty antenna connection?
    As a side note - all blocks in Flow 1.7.2 are dedicated to the older blue modules - but an implementation for the M031-C is in development, as confirmed by M5Stack support.

  • @anvalin I am glad I could help. I haven't done an example with sensors yet, because M5Stack said they would release support to the module in UIFlow which would make my example obsolete. I might still do it if I find the time.

    I think the input power doesn't matter since the 12V will be regulated down to 5V anyway. I am also in Berlin. With a simple P2P test and a TTGO board in my window I recieved packages about 400m away. My record though was getting a connection to an outdoor TTN gateway which is over 8km away!
    LoRa works best with a line of sight, any buildings inbetween can significantly decrease the signal.

  • @holgerw-0 didn't see your question. Did you manage to get it working?

    I haven't used ABP so far, but you should be able to use it by setting the ABP settings from TTN:


    and then switching from OTAA to ABP:


  • Hi @sodoku
    first COM.X LoraWan blocks became available with UI.Flow 1.7.5. Unfortunately still no support for the european frequency model.

    I now run a public TTN gateway myself covering a portion of the Gleisdreieck area filling a blind spot. Hopefully adding an external LoraWan antenna with higher gain will solve my range problem at my nodes location - half a kilometre distance in a dense urban area can really be a show stopper with LoraWan when there's no gateway around ;)

  • @anvalin glad you got something working. Your gateway is about 4km away from me. Not sure I will manage to get a connection to you :D