element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Community Hub
Community Hub
Member's Forum Getting own LoRa data from ttn server
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 9 replies
  • Answers 3 answers
  • Subscribers 566 subscribers
  • Views 2112 views
  • Users 0 members are here
Related

Getting own LoRa data from ttn server

gypo
gypo over 6 years ago

Hi

 

I hope this reaches someone that can help, I have my fingers crossed so tight they hurt!  After more than a year of trying I'm at the point of giving up and selling my LoRa kit.

I have designed and build LoRa nodes with sensors with ease and sending data to the ttn servers.  LoRa hardware development for me is going great guns but getting at my data isn't

 

I thought I saw a way to help vulnerable people around me by designing an expandable system that can help them get the help they need locally & quickly instead of the police not turning up or the ambulance taking an age to respond.  I had mentioned it to several elderly people some who live on their own and they thought it could work for them.  But I was a little optimistic on how easy the coding was.

 

I have a ttn gateway with an external aerial on the roof of my bungalow and a few sensors (ttn node, arduino LoRa shields and home brews) they all work and can send data to the ttn servers and I can see the data on there.  As I have hit a brick wall I have switched off the gateway and sensors but can have it up and running easily and quickly if someone can help.

 

I would like to be able to store my data so that I can make use of it and respond to it when the need arises.  I have my own domain and would like to get my data from the ttn servers to a database or other medium that enables me to store it and view it on my domain.

 

I am OK with designing, building and testing LoRa hardware (electronic stuff) as I have been inventing/designing circuits for many industries for over 50+ years (OAP myself & retired now).  I can write some code but writing code to manage data and connections between web/net related things is beyond me.  I have tried to follow many instructions and videos (on the ttn web sites and around the net) to connect with ttn using MQTT but after the initial part they all get very complicated and either assume I know stuff and skip it, want to use a 3rd party web site or use a raspberry pi.  None of them help.

 

I have got through quite a few tutorials to the point where I should see my data but either things complain or nothing happens.

 

What I'm hoping for is help writing the code to get my data from the ttn servers onto either a web page or a database on my domain (or better still both).

Is there anyone willing to hold my hand for a while to get this going?

 

Fingers crossed

Best Regards

Chris

  • Sign in to reply
  • Cancel

Top Replies

  • BigG
    BigG over 6 years ago +1 suggested
    I've just picked up on this thread and trying to make sense of your difficulties. So on one hand, it appears that you have succeeded in your project "I have a ttn gateway with an external aerial on the…
  • BigG
    BigG over 6 years ago in reply to gypo +1 suggested
    Aha, your explanation is rather helpful. If you can see your data on their console then you are over the 2/3rds of the way there. The final 1/3 involves creating a "TTN Application". The TTN website has…
  • BigG
    BigG over 6 years ago in reply to gypo +1
    Hi Chris Not to worry. I suspected that this might be the case as the real work is developing the code on your own domain (web hosting site) and sometimes the webhosting sites have restrictions on server…
Parents
  • clem57
    0 clem57 over 6 years ago

    So I will try to direct you, but I need to know a few things first.

    Messages can be transmitted from a gateway to TTN through two protocols: the legacy Semtech UDP protocol, and our new Gateway Connector protocol.

    Which version are you using?

    For the UDP I see a few problems:

    • Message exchange is not reliable, since the exchange is over 2-way UDP.
    • The UDP protocol is based on a format close to JSON, but not fully compliant.

    Are you a single channel gateway?

     

    We do not recommend starting to set up gateways by setting up single-channel gateways. Single-channel gateways are not LoRaWAN-compliant and only offer poor coverage. For this reason, we have chosen to hide single-channel gateways from our gateway map. If you want to start exploring the LoRaWAN world without investing too much, we would rather recommend investing in a Things Gateway or building your own gateway, which are beneficial to the whole community!

     

    If not, What is your gateway of choice or DIY?

    DIY is going to be the toughest to get help with.

     

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gypo
    0 gypo over 6 years ago in reply to clem57

    Hi Clem

     

    Thank you for responding.  I have only just got back to the computer and seen your reply.

    Unfortunately I'm having to go out in a minute but to answer your question about the gateway.

    I have the TTN-GW-868 (multi channel)  Sold by Farnell Order Code: 2675813

    I use my ttn node TTN-ND-868TTN-ND-868  Farnell Order Code: 2675817 to supply the data to start with.

     

    As for the protocol for getting the data, I'm happy to try any to get this working..

     

    Regards

    Chris

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gypo
    0 gypo over 6 years ago in reply to gypo

    Hi Clem

     

    Are you still able to help?

     

    Regards

    Chris

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • gypo
    0 gypo over 6 years ago in reply to gypo

    Hi Clem

     

    Are you still able to help?

     

    Regards

    Chris

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube