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 2333 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…
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to skruglewicz

    "Arduino Create Agent very finicky for my 2 Arduino boards MKR 1300 and the 33 IoT. It keeps hanging and crashing and I need to run it again."

    I have that too. I installed 1.2.5  - it's a little more stable.
    And it doesn't like USB3. It crashes less often if I put a cheap usb 2.0 hub in-between my laptop and the Arduinos.

    also, I found that the reason for my failures was coverage. See this update.

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

    I got a mail from ttn to activate my Arduino-created account and set a password.

    It's not your existing ttn account, if you already have that.

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

    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 not seem to exist anymore and the procedure will not create a new one.  At this point I’m going to try configuring in TTN.  I did a quick try and had a problem with a MIC mismatch, so I need to figure that out.

    It seemed bizarre to me that the Arduino Cloud automatically set me up a TTN device account and then required me to login and change the password.  Wonder who thought that was a good idea?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 3 years ago

    Hi Ralph,

    Great work. 

    I'm trying to figure out what could be the differences between what you done, and Jan Cumpsscenario here:

    /technologies/internet-of-things/f/forum/50721/success-connecting-to-arduino-cloud-ttn-with-mkr-wan-13x0-share-your-experience

    Am I correct the differences are:

    (1) You are using your own local gateway

    (2) You directly configured in TTN, and not via Arduino Cloud

    (3) You're using 915 MHz whereas Jan uses 868 MHz

    Any other difference?

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

    I had the same experience when creating the device a second time.  Is your first TTN device account still active?  I'm wondering if when it automatically created the device account using the email address of an existing account that it caused an issue on TTN.

    Are you using the Maker plan for the Arduino Cloud?

    • Cancel
    • Vote Up 0 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