element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Forum Success connecting to Arduino Cloud / TTN with MKR WAN 13x0: share your experience (solved)
  • 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!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 33 replies
  • Subscribers 501 subscribers
  • Views 10809 views
  • Users 0 members are here
  • ttn
  • cloud services
  • arduino
Related

Success connecting to Arduino Cloud / TTN with MKR WAN 13x0: share your experience (solved)

Jan Cumps
Jan Cumps over 3 years ago

update: solved - it was the coverage.

If you have been successful with sending data to The Things Network / Arduino Cloud, using an Arduino MKR WAN 1300 or 1310, please share your experience.

skruglewicz and I have tried this. The configuration worked for both of us (Arduino Cloud, TTN, customised sketch upload), but we don't get an active sub-1 GHz connection.

If you were able to exchange data, please share where you tried this, what Arduino/antenna combination, and where you placed your gizmo. And if you want, the sketch you uploaded (remove the Arduino-generated ID from the header comments).

Thank you

  • Sign in to reply
  • Cancel

Top Replies

  • Jan Cumps
    Jan Cumps over 3 years ago in reply to javagoza +5
    Success! Walking tour, and in RED where I had coverage: edit: data also arrived at the Arduino cloud, as expected:
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to Jan Cumps +5
    touristic info: the walk was partly through the Louis Bertrandlaan. One of the prettiest lanes of the Brussels district. It's a protected view since 2020. source: https://www.bruxellesbavard.be/nl…
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to shabaz +4
    Has your MKR board worked for any non-LoRaWAN communication, e.g. just plain LoRa? I suppose it could be a faulty MKR board. Yes they are functional. I have two MKR WAN 1310s, and they can perfectly…
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to shabaz

    I have access to the portal, specific for the Arduino things. When you register a first thing via Arduino cloud, it generates a TTN account, and an Application, for you in the background.
    I have 2 things registered, identically set up.

    Arduino Cloud and TTN setup happen in parallel. When you successfully registered a thing, it's registered on both sides.
    The registry does not involve LoRaWAN traffic though - it's all background process by the Arduino and the TTN backbone. There is a sketch uploaded to the MKRs during that time, but that's utilitarian - to configure the device.
    The final sketch you make, with your functionality to exchange telemetry, is done at a later step. It's at that step that I get no connection.

    Arduino setup: DEVICE (actual HW):

    image

    Arduino setup: THING (the UNIT you talk to, layer over the device):

    image

    The variable is the telemetry data to exchange. Device is a link to the THING above.
    The network data are the attributes that are retrieved when the wizard registers the thing on TTN:

    image

    Now the result of this activity on TTN:

    TTN Console with APP and account (created once when the first THING is registered:

    image

    TTN Application, with two END Points (these are the 2 MKR LANs I registered via Arduino Cloud):image

    TTN THING, the same one I showed above in the Azure Cloud setup:

    image

    It shows under the device header: No activity yet:

    image

    And that's an indication that this registered device hasn't connected to TTN once, via radio.

    For the investigation with the SDR, I'll need to do more work: new laptop and the software not yet installed ...

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to shabaz

    Checking the second part of your comments: the Version.
    I loaded the sketch you refered too. Here's the output:

    Welcome to MKR WAN 1300/1310 first configuration sketch
    Register to your favourite LoRa network and we are ready to go!
    Your module version is: ARD-078 1.2.0
    Please make sure that the latest modem firmware is installed.
    To update the firmware upload the 'MKRWANFWUpdate_standalone.ino' sketch.
    Your device EUI is: a***********7
    Are you connecting via OTAA (1) or ABP (2)?
    Enter your APP EUI
    Enter your APP KEY

    The result is the same, output:

    Something went wrong; are you indoor? Move near a window and retry.

    I'm checking the firmware (I thought I remember that this was already done by the Arduino Cloud Wizard when registering, but unsure):

    Compilation complete.
    Atmel SMART device 0x10010005 found
    Device : ATSAMD21G18A
    Chip ID : 10010005
    Version : v2.0 [Arduino:XYZ] Apr 30 2019 12:41:57
    Address : 8192
    Pages : 3968
    Page Size : 64 bytes
    Total Size : 248KB
    Planes : 1
    Lock Regions : 16
    Locked : none
    Security : false
    Boot Flash : true
    BOD : false
    BOR : false
    Arduino : FAST_CHIP_ERASE
    Arduino : FAST_MULTI_PAGE_WRITE
    Arduino : CAN_CHECKSUM_MEMORY_BUFFER
    Erase flash
    done in 0.841 seconds

    Write 119852 bytes to flash (1873 pages)

    [= ] 3% (64/1873 pages)
    [== ] 6% (128/1873 pages)
    [=== ] 10% (192/1873 pages)
    [==== ] 13% (256/1873 pages)
    [===== ] 17% (320/1873 pages)
    [====== ] 20% (384/1873 pages)
    [======= ] 23% (448/1873 pages)
    [======== ] 27% (512/1873 pages)
    [========= ] 30% (576/1873 pages)
    [========== ] 34% (640/1873 pages)
    [=========== ] 37% (704/1873 pages)
    [============ ] 41% (768/1873 pages)
    [============= ] 44% (832/1873 pages)
    [============== ] 47% (896/1873 pages)
    [=============== ] 51% (960/1873 pages)
    [================ ] 54% (1024/1873 pages)
    [================= ] 58% (1088/1873 pages)
    [================== ] 61% (1152/1873 pages)
    [=================== ] 64% (1216/1873 pages)
    [==================== ] 68% (1280/1873 pages)
    [===================== ] 71% (1344/1873 pages)
    [====================== ] 75% (1408/1873 pages)
    [======================= ] 78% (1472/1873 pages)
    [======================== ] 82% (1536/1873 pages)
    [========================= ] 85% (1600/1873 pages)
    [========================== ] 88% (1664/1873 pages)
    [=========================== ] 92% (1728/1873 pages)
    [============================ ] 95% (1792/1873 pages)
    [============================= ] 99% (1856/1873 pages)
    [==============================] 100% (1873/1873 pages)
    done in 0.916 seconds

    Verify 119852 bytes of flash with checksum.
    Verify successful
    done in 0.107 seconds
    CPU reset.

    --------------------------
    upload complete.

    Now I'll upload the test again...

    Done, and it didn't change (seeing the output of the updater above, I'm now sure that I did it before).

    Something went wrong; are you indoor? Move near a window, then reset and retry.

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

    Hi Jan,

    Your screenshot below looks correct (i.e. it is what I expected to see based on my non-Arduino TTN config), it is unlikely to be a TTN configuration issue I guess. Has your MKR board worked for any non-LoRaWAN communication, e.g. just plain LoRa? I suppose it could be a faulty MKR board.. I have only a couple of Arduino Uno and an Arduino Mega, and one of the Uno was faulty from the factory. But it is still a long shot, still more likely that Arduino have a library bug or firmware issue I suppose : (

    image

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

    Has your MKR board worked for any non-LoRaWAN communication, e.g. just plain LoRa? I suppose it could be a faulty MKR board.

    Yes they are functional. I have two MKR WAN 1310s, and they can perfectly communicate together and exchange data, over a decent distance. Those are the same ones that I try with TTN here.

    edit: also, lack of a matching antenna will not be the bottleneck Slight smile

    image

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • skruglewicz
    skruglewicz over 3 years ago in reply to skruglewicz

    Does anyone  know about the TTN Mapper project at ttnmapper.org (ttnmapper.org/.../) It is another gateway mapper . my only question is that it has fewer gateways than the TTN map at https://www.thethingsnetwork.org/map

    The gateway next my home is not listed? I'm wondering how accurate this map is? it show fewer gateways around me. It does give more info on the gateways it list however, like Location Lan/Lat

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to skruglewicz

    I located the closest gateway on that map, it's just a house block away.

    image

    According to that map, it's online right now.

    I've made a gizmo that lights up the LED if I have a connection:

    void loop() {
      ArduinoCloud.update();
      // Your code here 
      digitalWrite(LED_BUILTIN, ArduinoCloud.connected());
      health = health + 1;
      delay(10000);  
    }

    Here's my gizmo. As jc2048 indicated, I'll have to keep the antenna vertical.

    image

    There's no auto-retry. I need to push the reset button.
    Not a big fan walking through the capital with something like this, but anything for science :)

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • javagoza
    javagoza over 3 years ago in reply to Jan Cumps

    That box has reminded me that years ago the police of my city stopped me because I was taking a picture with a large pinhole camera made from a cardboard box. In the end I had to open the box and the film was blurred. Your box also looks like a bomb :D Good luck with the tests.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to javagoza

    Success!

    image

    Walking tour, and in RED where I had coverage:

    image

    edit: data also arrived at the Arduino cloud, as expected:

    image

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to Jan Cumps

    touristic info: the walk was partly through the Louis Bertrandlaan. One of the prettiest lanes of the Brussels district. It's a protected view since 2020.

    image

    source: https://www.bruxellesbavard.be/nl/voor-groepen-en-ondernemingen/57--schaarbeek-1900

    image

    source:https://www.hln.be/brussel/gewest-beschermt-louis-betrandlaan~a91f55e3/165443150/

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 3 years ago in reply to Jan Cumps

    Great, glad it's sorted : )

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