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
Internet of Things
  • Technologies
  • More
Internet of Things
Blog Migrating Things V1 Gateway to Things Stack V3
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Internet of Things to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 24 Feb 2022 5:49 PM Date Created
  • Views 2337 views
  • Likes 9 likes
  • Comments 8 comments
  • lora
  • ttn
  • arduino cloud
  • mkr wan 1310
Related
Recommended

Migrating Things V1 Gateway to Things Stack V3

ralphjy
ralphjy
24 Feb 2022

I've been following with interest this discussion Success connecting to Arduino Cloud / TTN with MKR WAN 13x0: share your experience where Jan Cumps and skruglewicz have been having issues connecting to the Arduino Cloud through the Things Network (TTN).

I have never tried using the Arduino Cloud through TTN, so this looked like a good opportunity to learn something.

The Things Network moved from their V2 Stack to the V3 Stack last year.  As of the end of the year the V2 Stack is no longer operating for general users.  I have a Things V1 Gateway (the Kickstarter version) that I'd been using successfully with a couple of MKR WAN 1300 boards for my LoRaXes project - LoRa Experimental Environmental Sensors (LoRaXes) GPS is Working.  Unfortunately, I had shut it down late last year when I was doing some re-organization in my workroom.  I had a note that I needed to migrate it to the V3 Stack when I brought the gateway back online.  As always, life gets in the way and I never got to doing that until now.

The instructions to migrate the gateway are straightforward Gateway Migration, but I had terrible time trying to get the gateway activated - it would connect fine, but it wouldn't activate.  I think this has something to do with this being a V1 Gateway which is configured slightly differently than the newer versions.  Searching the Internet, I found that many before me have had some variation of the problem that I was having.  I found that I could activate the Gateway using the US_FSB1 frequency plan, but not the US_FSB2 plan that TTN uses.

I ended up with a few different gateway configurations before I could get it to connect.  I normally connect the gateway to my network via WiFi, but that seemed to cause the activation problem with US_FSB2?  Temporarily, as a workaround, I'm going to use a wired ethernet connection.  I'll have to go back and clean everything up and re-deploy when I get everything figured out.

image

The gateway showing a successful activation and broker connection.

image

I have a new MKR WAN 1310 that I've never used, so I thought that I'd "kill two birds with one stone" and try that out with the Arduino Cloud.

I tried the instructions that Jan had linked Cloud LoRa getting started, but Murphy is alive and well - I could not get the Arduino Create Agent to work properly with the Arduino Cloud.  It installed fine and I got the little icon on the task bar when it was running, but it always closed when I tried to associate it with the device.  Not sure if something going on with my anti-virus software (AVG), but it wouldn't work even after I whitelisted the agent app.

I couldn't get it working, so I moved to a different computer and that worked.  After the device (MKR WAN 1310) was configured, an account was created on the TTN network with all the device configuration details uploaded.  I wasn't quite expecting that as I already have a TTN account - I'll have to see if that's something that can be changed for future deployment (it would have been nice if it asked to add the device to an existing account).

Here is the device showing in my new account

image

I tried the example of just sending an incrementing value to the cloud from the device and I'm having some problems with it.  It does not reliably show up in the cloud application, even though it is consistently incrementing in the Serial monitor.  I'll need to troubleshoot this.

Relative to the device connection to TTN - that seems to be working - as I would expect since the device is near the gateway.

Here is a screenshot of the gateway activity showing the device joining and packets being received:

image

And the same transaction from the device account on TTN:

image

So, I have some debugging to do to figure out why I'm not getting the data to update consistently on the Arduino Cloud.

Migrating to the V3 Stack caused me to lose all of my previous applications, so I need to try to re-create those when I have time (to get my LoRaXes project working again).

  • Sign in to reply

Top Comments

  • ralphjy
    ralphjy over 3 years ago in reply to fmilburn +1
    I agree about stuff getting too complex because of the effort to make it easier - somewhat ironic.... automatic is nice if there is good documentation about how to fix it manually . I just shot myself…
  • ralphjy
    ralphjy over 3 years ago in reply to shabaz +1
    Correct for 1&3. I actually did follow the tutorial that Jan used, so I did configure using the Arduino Cloud. Somehow, today the account that was set up yesterday by the Arduino Cloud configuration does…
Parents
  • fmilburn
    fmilburn over 3 years ago

    These are the kind of issues that drive me crazy as my expectation is that TTN and Arduino will be straight forward and easy to use. At least the initial setup and examples should be easily done. Like others, I’ve had no problem setting up MKR WAN boards and ESP LoRa Boards to talk to each other. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • fmilburn
    fmilburn over 3 years ago

    These are the kind of issues that drive me crazy as my expectation is that TTN and Arduino will be straight forward and easy to use. At least the initial setup and examples should be easily done. Like others, I’ve had no problem setting up MKR WAN boards and ESP LoRa Boards to talk to each other. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • ralphjy
    ralphjy over 3 years ago in reply to fmilburn

    I agree about stuff getting too complex because of the effort to make it easier - somewhat ironic....  automatic is nice if there is good documentation about how to fix it manually Stuck out tongue closed eyes.

    I just shot myself in the foot - decided to try to start again from scratch by deleting the device and re-adding it in the Arduino Cloud.  I got to that point because for some reason the TTN account created for the device yesterday seems to no longer exist.  Well, that process no longer seems to work in terms of adding the device to TTN.  Kind of reminds me of the problems with the new E14 site.

    Anyway, I'm also up against the limits of the free Arduino Cloud plan - so I'm going give up on it.  I'll go back to fixing my TTN setup later.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
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