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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Ralph Yamamoto's Blog Lesson relearned - be careful about your assumptions
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 17 Apr 2022 9:51 PM Date Created
  • Views 5629 views
  • Likes 11 likes
  • Comments 0 comments
  • lorawan field tester
  • lora-e5
  • wio terminal
Related
Recommended

Lesson relearned - be careful about your assumptions

ralphjy
ralphjy
17 Apr 2022

I recently purchased a Wio Terminal LoRaWan Chassis that adds LoRa and GNSS capabilities to the Wio Terminal.  I had read about a project done by Paul Pinault (disk91) - WioLoRaWANFieldTester that uses this setup to monitor LoRa gateway/hotspot performance.  Since I already have a Wio Terminal and battery chassis I thought this might be a good way to monitor my Things Gateway performance and also see if I can find other gateways in my area.  Also, since it has a standard LoRa-E5 transceiver and a GPS unit - I can reprogram it to make portable LoRa sensors (the Wio Terminal and Battery Chassis provide eight Grove connectors for I2C and GPIO, although the hardware UART Serial1 is used by the LoRa unit).

image

Because Paul has a prebuilt image and good documentation, I assumed that this was going to be easy.  Assembly was easy - just snap together the 40 pin RPi connectors of the 3 chassis.  The prebuilt image comes as a .uf2 file, so uploading was just drag and drop onto the Wio Terminal Mass Storage Device using File Manager.  And getting the Device and App keys for the Things Network was easy since I do that all the time.

So, what could go wrong?  The program doesn't start until you add the frequency zone information and the Device and App keys.  That's done using a serial terminal (I used the Serial Monitor on the Arduino IDE).

08:48:03.213 -> ZONE: US915
08:48:03.213 -> OK
08:48:15.508 -> DEVEUI:70B3D57ED004EBE9
08:48:15.508 -> OK
08:48:28.183 -> APPEUI:0000000000000000
08:48:28.183 -> OK
08:48:40.845 -> APPKEY:XXXXXXXXXXXXXXXXXXXXX
08:48:40.845 -> OK
08:48:40.878 -> LoRaWan configuration OK

Looks good so far until the program restarts:

image

It doesn't see the LoRa-E5 module.  This expansion chassis uses two UARTs - the hardware Serial1 for the LoRa and a SoftSerial one for the GPS.  There are some comments in Paul's documentation about problems with the UART configurations, but I assume that should be fixed in the prebuilt binary.

I tried another version of the application modified by a Seeed engineer and got similar results.

image

Except in this case the program allowed me to continue and I saw the GPS was working.

image

I reached out to Seeed tech support, but they just had me try what I had already tried even though I had written precisely what steps I had taken (I guess tech support assumes you don't know what you are doing and probably doesn't read what you send them).

Anyway, I got frustrated and requested an RMA.

I got in touch with Paul through his github repo and he was helpful.  I ended up compiling the program with debugging enabled and it basically told us what we already knew - the LoRa module wasn't responding.

So, what was the bad assumption that I made?  I assumed that the new LoRaWAN chassis was broken.

It turns out that while I was waiting for the RMA approval, I decided to test the Serial1 port on the Wio Terminal.  I hooked up to a UART on a Xiao board and determined that the Wio Terminal could receive what the Xiao was transmitting, but the Xiao could not receive what the Wio Terminal was transmitting.

I took a quick look with my USB scope at the Xiao TX line and saw what I expected:

image

Looking at the Wio Terminal TX line just showed a flat line offset by about 250mV.  So, I have a bad Serial1 TX line.

I'll admit to never having tried Serial1 on this Wio Terminal before, so it could always have been broken.  

I have another Wio Terminal that I've been using for a thermal camera and I swapped it for this one and now everything works as expected!

Below showing the RX RSSI from my gateway.

image

So, I've cancelled the RMA (admitted I was wrong).  I've labeled the bad Wio Terminal.  It's still useful if I don't need Serial1.  I'll create SoftSerial ports if I need UARTs.

I need to remember to be more diligent in my troubleshooting and verify my assumptions are correct.

  • Sign in to reply
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