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
Wireless
  • Technologies
  • More
Wireless
Blog Blues Wireless Notecard - Advanced Configuration - GPIO
  • Blog
  • Forum
  • Documents
  • Polls
  • Quiz
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Wireless to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 23 Dec 2022 10:14 PM Date Created
  • Views 2109 views
  • Likes 6 likes
  • Comments 1 comment
  • blues wireless
  • blues wifi notecard
  • blues notecard
  • cellular iot
  • sparkfun cellular notecarrier
Related
Recommended

Blues Wireless Notecard - Advanced Configuration - GPIO

ralphjy
ralphjy
23 Dec 2022

I've been playing with Cellular IoT this year.

I did a project with the Nordic Thingy:91 back in May - Thingy91 Dog Tracker to use GPS to record walks with my granddog.

image

And even earlier in the year I wrote a post when I started using a cellular kit from Blues Wireless - Blues Wireless Notecard.

image

Unfortunately, as often happens, I got busy with life and never got to using the hardware in a project.  I'm hoping that I'll have time to do a few Cellular IoT projects with the Blues Notecards in the new year.

The typical application uses the Notecard as strictly a bidirectional cellular modem as shown in this clip from the documentation:

image

I'm also interested in the standalone asset tracking use case.  This case is covered by the "card Requests" section of the Notecard API.  The usage is described in detail in the Advanced Notecard Configuration documentation.  That's what I'm going to be looking at, starting with this post.

The Notecard SOM has a very capable STM32 ARM Cortex-M4F MCU with 2 Mbyte Flash.  I wasn't sure which particular part was being used, so I looked at it using a USB microscope.

image

The Notecard is not user programmable, so you are limited to the functionality exposed by the API.

For this post I'm going to look at the GPIO functions and the BME280 sensor interface.

Since I'm just interested in the "card Requests" interface for this post, I'm going to use a WiFi Notecard rather than a cellular one.  Besides the difference in communication, the only other major difference is that the WiFi version does not have the GNSS functionality which is part of the cellular module.

And I just a bought Sparkfun QWIIC Cellular Notecarrier, so I'm going to use that instead of a Blues Notecarrier (the Sparkfun board is supported by the Blues documentation).

Here is a picture of the Notecard on the Notecarrier.

image

image

image

For this post I'm going to be working with the Notecard AUX pins.  There are seven AUX pins that are brought out through the M2 edge connector.  On the QWIIC Cellular Notecarrier these are brought out to pads near the LTE SMA antenna connector.

image

AUX1 - AUX4 are the 4 GPIO pins.  Their function changes based on the AUX mode.

AUX EN/RX/TX provide a debug port that is separate from the primary Notecard communications (I2C/UART).  These pins are dedicated and do not need to be configured.

I am going to focus on the GPIO pins.

I covered the basic Notecard/Notecarrier setup in my previous post, so I won't repeat it here.  I am going to use the same browser based terminal (using the Notecarrier USB port) to do the test configurations using JSON requests.

Here is the terminal view when I started:

image

You can get detailed configuration info using the "card.version" query:

image

The next step was to configure WiFi by providing the request {"req":"card.wifi","ssid":"<ssid name>","password":"<password>"}.

Here is the response:

image

And a detailed configuration with the assigned ipaddr: (the WiFi Notecard only operates on 2.4 GHz)

image

Then I needed to associate the Notecard with a Notehub Product (needs to be preconfigured on the Notehub Dashboard):

image

Requires a manual sync to upload the request:

image

I decided to do a firmware update (DFU).  This is simple to do after the device is connected to the Notehub.  On the devices page - just need to select the Notecard Firmware tab and select the latest version to download.  Took a while since it was updating over WiFi.  I should time it when I do a cellular DFU.

image

Reconnect the USB Serial and verify the update.

image

Using GPIO Mode

Resync with the Notehub and ready to try out the GPIO.  

First check the current AUX mode:

image

Then set it to GPIO mode:

image

The GPIO pins are configurable to the following states via the usage argument:

image

So, I tried the first example from the documentation - and it failed!

image

After some head-scratching I realized that it was because the example had comments in the JSON which are not allowed.

Removing the comments fixed it:

image

I verified the output states with a DMM and tried setting various other combinations successfully.  I also verified on the Blues forum that the example was in error.

Using Monitor Mode

The Notecard has a test mode that allows the monitoring of notecard status both locally using LEDs and remotely by sending a note (_button.qo) to the Notehub.

There are two monitor modes:

  1. Use discrete LEDs on AUX2-4 to display status
  2. Use 1,2,or 5 Neopixel LEDs on AUX2
  3. Both modes use AUX1 as a test button to initiate sending a status note to the Notehub

I am going to test the Neopixel mode with a single Neopixel.

Here is the mode description:

image

Enable neo-monitor with single Neopixel:

image

A demo of the Neopixel operation.  I'm simulating a button press by grounding the AUX1 pin to initiate sending the _button.qo file.  The initial "yellow" color looks a bit "red".

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

After the send sequence completes without error, the Event and the _button.qo file can be seen on Notehub.

image

And looking at the JSON we can see that the _button.qo file in addition to the location data has been received.  I need to understand WiFi Triangulation better, but it is an experimental feature that is using the access point to ascertain a location.

image

Using BME280

I ran into a snag using the BME 280 with the WiFi Notecard.  This configuration requires using the AUX Track Mode which might be disabled in the firmware because there no GNSS module which means there is no tracking capability (although there is apparently WiFi Triangulation)..

Here is the AUX Track Mode description:

image

I am trying to verify on the Blues forum that this mode won't work on the WiFi Notecard.

I'll follow up with a second post and I'll also cover the AUX Motion Mode that uses the onboard accelerometer to determine if the Notecard is in motion.

  • Sign in to reply
Parents
  • DAB
    DAB over 2 years ago

    Nice project.

    My dog would probably knock it off as she dives through the bushes after critters or birds.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • DAB
    DAB over 2 years ago

    Nice project.

    My dog would probably knock it off as she dives through the bushes after critters or birds.

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