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 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
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Blog C++ library for ST Teseo GPS - pt. 11: 7.0 release - stable
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 2 Jul 2025 2:36 PM Date Created
  • Views 309 views
  • Likes 8 likes
  • Comments 4 comments
  • raspberry
  • pico
  • c++26
  • nmea
  • c++23
  • Teseo
  • gps
  • teseo_c++
Related
Recommended

C++ library for ST Teseo GPS - pt. 11: 7.0 release - stable

Jan Cumps
Jan Cumps
2 Jul 2025

The Teseo-LIV3 GPS module (as used in shabaz ' GPS / Galileo / BeiDou / GLONASS receiver) talks UART and I2C. I developed an OO driver and parser for it.
The Raspberry Pico port of that library is now ready for release 7.0.

GitHub 7.0 release with binaries

Main changes:

  • library dependencies: git repository strategy change from submodules to CMake FetchContent.
  • remove need for recursive git clone
  • adapt to latest TESEO, NMEA and callbackmanager library versions
  • extensive unit testing added: 42 tests

Check the release notes via the link above, for a full list of changes

This version of the project requires Pico SDK 2, CMake 3.28, GCC 14.2.1 and a build system that can manage modules. Ninja works.

Summary of Pico connections

Pico resources used only if you use I2C:

  • I2C0
  • SDA: GP16 (Pico I2C0 SDA)
  • SCL:  GP17 (Pico I2C0 SCL)
  • baud: 100 * 1000

for I2C, SDA connects to SDA and SCL to SCL. The PCB that I use has the pull-ups for I2C.

Pico resources used only if you use UART:

  • UART1
  • TX: GP4 (Pico UART1 RX)
  • RX:  GP5 (Pico UART1 Tx)
  • baud: 9600
  • UART1 RX interrupt

for UART, RX connects to TX and vice versa

Pico common resources:

  • RESET: GP18 (optional)
  • 5V: VBUS
  • 0V: GND

image
image: how to hook up the Teseo PCB to a Pico.

Test health

Test project /home/runner/work/pico_gps_teseo/pico_gps_teseo/test_gps_teseo/build
Start 1: nmea_gll.parse
1/42 Test #1: nmea_gll.parse ..................................................................................................... Passed 0.00 sec
Start 2: nmea_gll.source
2/42 Test #2: nmea_gll.source .................................................................................................... Passed 0.00 sec
Start 3: nmea_gll.lat
3/42 Test #3: nmea_gll.lat ....................................................................................................... Passed 0.00 sec
Start 4: nmea_gll.lon
4/42 Test #4: nmea_gll.lon ....................................................................................................... Passed 0.00 sec
Start 5: nmea_gll.time
5/42 Test #5: nmea_gll.time ...................................................................................................... Passed 0.00 sec
Start 6: nmea_gll.valid
6/42 Test #6: nmea_gll.valid ..................................................................................................... Passed 0.00 sec
Start 7: nmea_gga.parse
7/42 Test #7: nmea_gga.parse ..................................................................................................... Passed 0.00 sec
Start 8: nmea_gga.source
8/42 Test #8: nmea_gga.source .................................................................................................... Passed 0.00 sec
Start 9: nmea_gga.lat
9/42 Test #9: nmea_gga.lat ....................................................................................................... Passed 0.00 sec
Start 10: nmea_gga.lon
10/42 Test #10: nmea_gga.lon ....................................................................................................... Passed 0.00 sec
Start 11: nmea_gga.time
11/42 Test #11: nmea_gga.time ...................................................................................................... Passed 0.00 sec
Start 12: nmea_gga.sats
12/42 Test #12: nmea_gga.sats ...................................................................................................... Passed 0.00 sec
Start 13: nmea_gga.qual
13/42 Test #13: nmea_gga.qual ...................................................................................................... Passed 0.00 sec
Start 14: nmea_gga.alt
14/42 Test #14: nmea_gga.alt ....................................................................................................... Passed 0.00 sec
Start 15: nmea_gga.geosep
15/42 Test #15: nmea_gga.geosep .................................................................................................... Passed 0.00 sec
Start 16: teseoTest.parseMultilineReply
16/42 Test #16: teseoTest.parseMultilineReply ...................................................................................... Passed 0.00 sec
Start 17: teseoTest.parseSinglelineReply
17/42 Test #17: teseoTest.parseSinglelineReply ..................................................................................... Passed 0.00 sec
Start 18: teseoTest.callbacksSet
18/42 Test #18: teseoTest.callbacksSet ............................................................................................. Passed 0.00 sec
Start 19: teseoTest.callbacksExecute
19/42 Test #19: teseoTest.callbacksExecute ......................................................................................... Passed 0.00 sec
Start 20: callback.objectMethod
20/42 Test #20: callback.objectMethod .............................................................................................. Passed 0.00 sec
Start 21: callback.classStaticMethod
21/42 Test #21: callback.classStaticMethod ......................................................................................... Passed 0.00 sec
Start 22: callback.cFunction
22/42 Test #22: callback.cFunction ................................................................................................. Passed 0.00 sec
Start 23: callback.lambda
23/42 Test #23: callback.lambda .................................................................................................... Passed 0.00 sec
Start 24: callback.bool
24/42 Test #24: callback.bool ...................................................................................................... Passed 0.00 sec
Start 25: callback.voidWithoutParameters
25/42 Test #25: callback.voidWithoutParameters ..................................................................................... Passed 0.00 sec
Start 26: callback.voidWithConstParameter
26/42 Test #26: callback.voidWithConstParameter .................................................................................... Passed 0.00 sec
Start 27: callback.noHandler
27/42 Test #27: callback.noHandler ................................................................................................. Passed 0.00 sec
Start 28: callback.setUnset
28/42 Test #28: callback.setUnset .................................................................................................. Passed 0.00 sec
Start 29: callback.object
29/42 Test #29: callback.object .................................................................................................... Passed 0.00 sec
Start 30: callback.string
30/42 Test #30: callback.string .................................................................................................... Passed 0.00 sec
Start 31: callback.constructor
31/42 Test #31: callback.constructor ............................................................................................... Passed 0.00 sec
Start 32: nmea_gllParser.gllparsetest/("$XXXXXXXX", false)
32/42 Test #32: nmea_gllParser.gllparsetest/("$XXXXXXXX", false) ................................................................... Passed 0.00 sec
Start 33: nmea_gllParser.gllparsetest/("", false)
33/42 Test #33: nmea_gllParser.gllparsetest/("", false) ............................................................................ Passed 0.00 sec
Start 34: nmea_gllParser.gllparsetest/("$GPGLL,5051.83778,N,00422.55809,S,185427.150,A,N*4F", true)
34/42 Test #34: nmea_gllParser.gllparsetest/("$GPGLL,5051.83778,N,00422.55809,S,185427.150,A,N*4F", true) .......................... Passed 0.00 sec
Start 35: nmea_gllParser.gllparsetest/("$GPGLL,5051.83778,N,00422.55809,S,185427.150,V,N*4F", true)
35/42 Test #35: nmea_gllParser.gllparsetest/("$GPGLL,5051.83778,N,00422.55809,S,185427.150,V,N*4F", true) .......................... Passed 0.00 sec
Start 36: nmea_ggaParser.ggaparsetest/("$XXXXXXXX", false)
36/42 Test #36: nmea_ggaParser.ggaparsetest/("$XXXXXXXX", false) ................................................................... Passed 0.00 sec
Start 37: nmea_ggaParser.ggaparsetest/("", false)
37/42 Test #37: nmea_ggaParser.ggaparsetest/("", false) ............................................................................ Passed 0.00 sec
Start 38: nmea_ggaParser.ggaparsetest/("$GPGGA,191237.000,5051.78066,N,00422.57079,E,1,05,3.7,027.26,M,47.3,M,,*65", true)
38/42 Test #38: nmea_ggaParser.ggaparsetest/("$GPGGA,191237.000,5051.78066,N,00422.57079,E,1,05,3.7,027.26,M,47.3,M,,*65", true) ... Passed 0.00 sec
Start 39: nmea_gsaParser.gsaparsetest/("$XXXXXXXX", false)
39/42 Test #39: nmea_gsaParser.gsaparsetest/("$XXXXXXXX", false) ................................................................... Passed 0.00 sec
Start 40: nmea_gsaParser.gsaparsetest/("", false)
40/42 Test #40: nmea_gsaParser.gsaparsetest/("", false) ............................................................................ Passed 0.00 sec
Start 41: nmea_gsaParser.gsaparsetest/("$GNGSA,A,3,15,18,,,,,,,,,,,4.7,3.7,2.9*2D", true)
41/42 Test #41: nmea_gsaParser.gsaparsetest/("$GNGSA,A,3,15,18,,,,,,,,,,,4.7,3.7,2.9*2D", true) .................................... Passed 0.00 sec
Start 42: nmea_gsaParser.gsaparsetest/("$GNGSA,A,3,73,65,81,,,,,,,,,,4.7,3.7,2.9*2E", true)
42/42 Test #42: nmea_gsaParser.gsaparsetest/("$GNGSA,A,3,73,65,81,,,,,,,,,,4.7,3.7,2.9*2E", true) .................................. Passed 0.00 sec
100% tests passed, 0 tests failed out of 42
Total Test time (real) = 0.28 sec

visit the github repository (git clone https://github.com/jancumps/pico_gps_teseo.git)
view the online documentation
Link to all posts.

  • Sign in to reply
Parents
  • Jan Cumps
    Jan Cumps 16 days ago

    As part of the exercise, I tamed the Doxygen output a bit. The documentation is auto-generated and published when a commit is pushed to the main branch on GitHub.

    image

    Because the dependent libraries aren't submodules of the repository anymore in this version, I can't just run Doxygen after checkout. The code is not available yet.

    What I've done: in the doc generation script, run a build. That causes CMake to download the dependent lib sources. I then tell Doxygen where to find these sources. A few changes in the doxygen script itself, take care that the documentation removes the actual locations of these depedent libs:

    FULL_PATH_NAMES        = NO
    STRIP_FROM_PATH        = build/_deps

    Works like a charm.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Jan Cumps
    Jan Cumps 16 days ago

    As part of the exercise, I tamed the Doxygen output a bit. The documentation is auto-generated and published when a commit is pushed to the main branch on GitHub.

    image

    Because the dependent libraries aren't submodules of the repository anymore in this version, I can't just run Doxygen after checkout. The code is not available yet.

    What I've done: in the doc generation script, run a build. That causes CMake to download the dependent lib sources. I then tell Doxygen where to find these sources. A few changes in the doxygen script itself, take care that the documentation removes the actual locations of these depedent libs:

    FULL_PATH_NAMES        = NO
    STRIP_FROM_PATH        = build/_deps

    Works like a charm.

    • 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