Skip to content
QZSS-Strategy-OfficePublic

About

"CLAS Test Library (CLASLIB)" is an open software tool to provide useful information for Centimeter-Level Augmentation Service (CLAS)

Resources

Stars

60 stars

Watchers

5 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLASLIB: CLAS Test Library for QZSS Centimeter-Level Augmentation Service

Version Platform Language Documentation

CLASLIB, the CLAS Test Library, is a reference implementation for evaluating and developing software that supports the Centimeter-Level Augmentation Service (CLAS) of QZSS.
It provides post-processing tools and libraries for CLAS-related data conversion, positioning analysis, and CLAS authentication, including:

  • Compact SSR to OSR conversion
  • Compact SSR to virtual observation conversion
  • Post-processing PPP-RTK and VRS-RTK positioning analysis
  • CLAS authentication support using L6E QZNMA-CLAS data
  • A manual and sample data for evaluation and reference implementation studies

CLASLIB is intended to help developers and researchers build CLAS-compatible positioning and authentication softwares efficiently by providing example implementations and sample data.


Background

CLAS is the Centimeter-Level Augmentation Service provided by QZSS. CLAS corrections are provided as CLAS L6D messages.
CLAS CMA is a Correction Message Authentication service which authenticates CLAS corrections. CLAS CMA is a part of QZSS-SAS (Signal Authentication Services). Their format is defined in the QZSS interface specification IS-QZSS-L6 and IS-QZSS-SAS (002 or later), and is based on RTCM STANDARD 10403.2, Message Type 4073, known as Compact SSR.

CLASLIB is derived from:

CLASLIB 0.9.0 and later includes support for CLAS CMA. The authentication library is implemented through seclib, a wrapper layer around mbedTLS v3.6.5.


Target Users

CLASLIB is intended for:

  • Developers implementing CLAS-compatible positioning and/or authentication software
  • Researchers evaluating CLAS or GNSS precise positioning algorithms including positioning incorporating CMA
  • Engineers studying Compact SSR, SSR-to-OSR conversion, PPP-RTK, VRS-RTK, or CLAS authentication processing
  • Users who want to generate OSR corrections, virtual observations, or post-processed positioning results from Compact SSR
  • Users who want to evaluate CLAS authentication data included in L6E messages

Main Tools and Libraries

Tool / Library Description Main Input Main Output
SSR2OSR Converts Compact SSR corrections to OSR corrections and can dump QZNMA-CLAS data from L6E files CLAS L6 / Compact SSR data, L6E data OSR correction data, decoded L6E dump output
SSR2OBS Converts Compact SSR corrections to virtual observations and can dump QZNMA-CLAS data from L6E files CLAS L6 / Compact SSR data, L6E data RINEX 3 or RTCM 3 MSM virtual observations, decoded L6E dump output
RNX2RTKP Performs post-processing PPP-RTK or VRS-RTK positioning analysis using Compact SSR, with CLAS CMA support Observation data, navigation data, CLAS L6(L6D/L6E) data, configuration files, CLAS CMA public keys Positioning results, including NMEA 0183 GGA format and authentication results if CLAS CMA is used
seclib Provides CLAS authentication-related cryptographic functions over mbedTLS Public keys, CLAS CMA data Verification results and authentication-related processing function results

Requirements

CLASLIB is intended to be built and run in the following environment:

  • Microsoft Windows 10 64-bit
  • Cygwin or MinGW / Win32
  • make
  • x86_64-w64-mingw32-gcc or equivalent C99-compatible C compiler supported by the build environment

CLASLIB 0.9.0 and later use a 64-bit build environment and explicitly builds with C99 support.

The included executable binaries are tested on Microsoft Windows 10 64-bit. (Windows 11?) Other operating systems and compilers may be usable, but they are not guaranteed.


Repository Structure

claslib
├─ README.md
├─ LICENSE
├─ readme_rtklib.txt
├─ data/
│  └─ pubkey/
├─ doc/
│  ├─ manual-claslib.pdf
│  └─ relnotes/
├─ seclib/
│  ├─ include/
│  ├─ src/
│  ├─ third_party/
│  └─ LICENSES/
├─ src/
│  └─ rcv/
└─ util/
   ├─ rnx2rtkp/
   ├─ ssr2obs/
   └─ ssr2osr/

Important directories:

Path Description
data/ Sample observation data, navigation data, CLAS L6 data, grid files, antenna files, and other auxiliary data
data/pubkey/ DER-format public keys used for CLAS authentication
Public keys shall be replaced with operational keys for processing data from satellite broadcasts
doc/manual-claslib.pdf CLASLIB manual
doc/relnotes/ Release notes for each version
seclib/ authentication library
seclib/include/ Header files for the authentication library
seclib/src/ Source files for the authentication library
seclib/third_party/mbedtls/ Bundled mbedTLS source codes
seclib/LICENSES/ License files for bundled third-party components
src/ Source code derived from and extending RTKLIB/GSILIB
util/ssr2osr/ SSR2OSR source code, executable, makefile, and sample configuration
util/ssr2obs/ SSR2OBS source code, executable, makefile, and sample configuration
util/rnx2rtkp/ RNX2RTKP source code, executable, makefile, and sample configuration files

Sample Workflows

This section summarizes the sample make targets included in CLASLIB. The sample make targets are intended to be run in a Cygwin shell on Windows.
Detailed command-line usage, configuration options, and input/output specifications are described in the CLASLIB manual.

First, clone the repository:

git clone https://github.com/QZSS-Strategy-Office/claslib.git
cd claslib

Quick Start

For current CLAS message processing, the following samples are recommended. They use sample data including Compact SSR Subtype 12 messages.
Run each target from the corresponding utility directory:

Purpose Tool Directory Example target
Convert Compact SSR to OSR corrections SSR2OSR util/ssr2osr make test1_ST12
Convert Compact SSR to virtual observations in RINEX 3 format SSR2OBS util/ssr2obs make test1r_ST12
Perform PPP-RTK positioning using Compact SSR RNX2RTKP util/rnx2rtkp make test_ST12
Perform VRS-RTK positioning using Compact SSR RNX2RTKP util/rnx2rtkp make test_ST12_VRS

Examples: Choose one of the following examples depending on your purpose. Run the commands from the repository root.

# Convert Compact SSR to OSR corrections
(cd util/ssr2osr && make && make test1_ST12)

# Convert Compact SSR to virtual observations in RINEX 3 format
(cd util/ssr2obs && make && make test1r_ST12)

# Perform PPP-RTK positioning using Compact SSR
(cd util/rnx2rtkp && make && make test_ST12)

# Perform VRS-RTK positioning using Compact SSR
(cd util/rnx2rtkp && make && make test_ST12_VRS)

Note

Subtype 12 messages are defined in IS-QZSS-L6-002 and later versions. For processing current CLAS messages, samples including Subtype 12 are recommended.

CLAS CMA processing Examples

CLASLIB 0.9.0 and later support CLAS CMA processing using L6E messages.

Dump QZNMA-CLAS data from an L6E file

SSR2OSR and SSR2OBS can decode QZNMA-CLAS data from an L6E file.

Run the following command from util/ssr2osr:

ssr2osr.exe -dump <file.l6e>

From the repository root:

(cd util/ssr2osr && ./ssr2osr.exe -dump <file.l6e>)

Run the following command from util/ssr2obs:

ssr2obs.exe -dump <file.l6e>

From the repository root:

(cd util/ssr2obs && ./ssr2obs.exe -dump <file.l6e>)

Note

For the L6E dump output, refer to CLASLIB manual.

Use CLAS CMA in RNX2RTKP

RNX2RTKP recognizes the following file extensions for CLAS-related input:

Extension Description
.l6 / .L6 CLAS correction data
.l6d / .L6D CLAS correction data, handled in the same way as .l6
.l6e / .L6E L6E signal data including QZNMA-CLAS data

CLAS CMA processing can be controlled by configuration parameters such as misc-clasauth and file-pubkeydir. See Configuration Files and the CLASLIB manual for details.

CLASLIB includes a target for using CLAS CMA. Run the target from the corresponding utility directory:

Purpose Tool Directory Example target
Perform PPP-RTK positioning with CLAS CMA support RNX2RTKP util/rnx2rtkp make test_L6_auth

CLAS Transmit Pattern 1 / 2 Examples

CLASLIB 0.8.2 and later versions support two CLAS transmit patterns defined in IS-QZSS-L6-007 and later versions.
The following targets use sample data for CLAS Transmit Pattern 1, CLAS Transmit Pattern 2, or both.
Run each target from the corresponding utility directory:

Purpose Tool Directory Example target
Generate virtual observations using CLAS Transmit Pattern 1 or 2 L6 messages SSR2OBS util/ssr2obs make test1r_CH1, make test1r_CH2
Perform PPP-RTK positioning with two-channel L6 input RNX2RTKP util/rnx2rtkp make test_L6_2CH
Perform VRS-RTK positioning with two-channel L6 input RNX2RTKP util/rnx2rtkp make test_L6_2CH_VRS

Additional Sample Targets

The targets below provide additional sample workflows for specific features or input/output formats. They are also compatible with Compact SSR Subtype 12 messages.
They are useful for checking optional features, but they are not intended to replace the detailed usage described in the CLASLIB manual.
Run each target from the corresponding utility directory:

Purpose Tool Directory Example target Notes
Dump Compact SSR subtype messages SSR2OSR util/ssr2osr make test1d Parses L6 message data including Compact SSR Subtype 12 messages. Uses the -dump option.
Generate virtual observations in RTCM 3 MSM format SSR2OBS util/ssr2obs make test1m Generates virtual observations in RTCM 3 MSM format using Subtype 12 sample data.
Dump Compact SSR subtype messages SSR2OBS util/ssr2obs make test1d Parses L6 message data including Compact SSR Subtype 12 messages. Uses the -dump option.
Perform positioning analysis using BINEX observation data RNX2RTKP util/rnx2rtkp make test_L6_bnx Uses BINEX-format observation data.
Perform positioning analysis using BINEX observation and navigation data RNX2RTKP util/rnx2rtkp make test_NONAV Uses BINEX-format observation and navigation data.
Perform analysis around a GPS week boundary RNX2RTKP util/rnx2rtkp make test_L6_week Uses the -l6w option for L6 time consistency checking.
Perform positioning analysis using QZSS L1C and L5 signals RNX2RTKP util/rnx2rtkp make test_L6_L1CL5 Uses QZSS L1C and L5 signals.

Legacy Samples

The following targets use sample data based on older QZSS L6 interface specifications. They are kept for historical reference.

Purpose Tool Directory Legacy target Recommended current target
Convert Compact SSR to OSR corrections SSR2OSR util/ssr2osr make test1 make test1_ST12
Convert Compact SSR to virtual observations in RINEX 3 format SSR2OBS util/ssr2obs make test1r make test1r_ST12
Perform PPP-RTK positioning using Compact SSR RNX2RTKP util/rnx2rtkp make test_L6 make test_ST12
Perform VRS-RTK positioning using Compact SSR RNX2RTKP util/rnx2rtkp make test_VRS make test_ST12_VRS

Run these targets from the corresponding utility directory only when you need to reproduce older sample workflows.


Configuration Files

Sample configuration files are included in each utility directory.

Tool File Description
SSR2OSR util/ssr2osr/sample.conf Sample configuration for SSR2OSR
SSR2OBS util/ssr2obs/sample.conf Sample configuration for SSR2OBS
RNX2RTKP util/rnx2rtkp/kinematic.conf Sample configuration for kinematic PPP-RTK analysis with CLAS authentication
RNX2RTKP util/rnx2rtkp/static.conf Sample configuration for static PPP-RTK analysis
RNX2RTKP util/rnx2rtkp/kinematic_vrs.conf Sample configuration for kinematic VRS-RTK analysis
RNX2RTKP util/rnx2rtkp/static_vrs.conf Sample configuration for static VRS-RTK analysis
RNX2RTKP util/rnx2rtkp/kinematic_L1CL5.conf Sample configuration for analysis using QZSS L1C and L5 signals

Note

In the configuration file, set the receiver, antenna, and radome names to match the equipment being used.


Sample Data

Sample data is included under the data/ directory.

The directory contains, among other files:

  • Observation data
  • Navigation data
  • BINEX data
  • CLAS L6 data
  • Grid definition files
  • Antenna parameter files
  • Earth rotation parameter files
  • Auxiliary tables used by the sample analyses
  • DER-format public keys for testing CLAS authentication under data/pubkey/

The sample make targets in util/ssr2osr, util/ssr2obs, and util/rnx2rtkp use these files.

Note

The CLAS message archive data can also be used as CLAS L6 data.

Note

The antenna parameter file must contain data for the antenna and radome used with the receiver.


Documentation


Third-Party Components

CLASLIB 0.9.0 and later bundles mbedTLS v3.6.5 under seclib/third_party/mbedtls/.

mbedTLS is used for CLAS authentication-related cryptographic processing, including:

  • ECDSA
  • SHA256
  • AES-CMAC
  • Random number generation
  • ASN.1 / DER parsing

mbedTLS is included as source code in this repository. No external mbedTLS installation is required.


License

CLASLIB is distributed under the BSD 2-Clause License with additional clauses.

See LICENSE for the full license terms.

CLASLIB includes software derived from RTKLIB and GSILIB. Users must comply with the applicable licenses of CLASLIB and its derived or bundled components.

CLASLIB 0.9.0 and later also includes mbedTLS v3.6.5, which is distributed under the Apache License 2.0. The mbedTLS source remains subject to its applicable copyright notices, license notices, and redistribution requirements. The complete Apache License 2.0 text is provided under seclib/LICENSES/.

Copyright notices:

  • Copyright (c) 2007-, T. Takasu, All rights reserved.
  • Copyright (c) 2014-, Geospatial Information Authority of Japan, All rights reserved.
  • Copyright (c) 2017-, Mitsubishi Electric Corp., All rights reserved.

Disclaimer

CLASLIB is provided as a reference implementation. It does not guarantee effectiveness, accuracy, reliability, or suitability for any specific purpose.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS". ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED.

See LICENSE for the full disclaimer.


References


Trademarks

Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.
Other product names, service names, or company names may be trademarks or registered trademarks of their respective owners.

Update History

  • 2017/09/12 0.2.0
    • The first public version
  • 2017/12/01 0.3.1
    • Fixed several bugs
  • 2018/04/10 0.4.0
    • Removed conversion utilities: DUMPCSSR and QZS2RTCM.
    • Fixed an issue in compact SSR file reading.
  • 2018/04/10 0.4.0-P/0.4.0-PS
    • Added PPP-RTK post-processing utility (RNX2RTKP).
  • 2018/04/23 0.4.1-P/0.4.1-PS
    • Updated license agreement of 0.4.0-P/0.4.0-PS.
  • 2018/05/17 0.4.2
    • Updated reference RTKLIB version in readme_claslib.txt
  • 2018/08/31 0.5.0
    • Supported GPS L5 signal and Galileo
    • Added release notes "relnotes_0.5.0.txt"
  • 2018/09/04 0.5.1
    • Fixed an issue in compact SSR invalid value handling
    • Added release notes "relnotes_0.5.1.txt"
  • 2018/09/12 0.5.2
    • Added release notes "relnotes_0.5.2.txt"
  • 2019/02/27 0.6.0
    • Added a new conversion utility: SSR2OBS
    • Added a VRS-RTK positioning mode: RNX2RTKP
    • Added release notes "relnotes_0.6.0.txt"
  • 2019/09/05 0.6.1
    • Supported Binex formart: RNX2RTKP
    • Added a dump option: SSR2OSR, SSR2OBS
    • Added release notes "relnotes_0.6.1.txt"
  • 2019/12/25 0.7.0
    • Supported Compact SSR SubType 12 Message: RNX2RTKP, SSR2OSR, SSR2OBS
    • Supported BINEX upgraded Galileo decoded ephemeris (0x01-14): RNX2RTKP, SSR2OSR, SSR2OBS
    • Added release notes "relnotes_0.7.0.txt
  • 2020/02/13 0.7.1
    • Refactoring source codes regarding inputs of each cssr subtype message (cssr.c)
    • Added release notes "relnotes_0.7.1.txt"
  • 2020/11/17 0.7.2
    • Refactoring source codes and improved fucntions ragarding ocean loading effect
    • Added release notes "relnotes_0.7.2.txt"
  • 2022/08/25 0.7.3
    • Improved parameters for PAR and ionospheric residual estimation to optimize for ionospheric disturbances.
    • Fixed some VRS processes to support PAR.
    • Added release notes "relnotes_0.7.3.txt"
  • 2024/03/11 0.7.3a
    • There are no changes to SSR2OSR, SSR2OBS and RNX2RTKP. This revision is due to changes of LICENSE.
  • 2024/10/03 0.7.4
    • Improved several processing.
    • Added release notes "relnotes_0.7.4.txt"
  • 2024/12/06 0.7.5
    • There are no changes to SSR2OSR and SSR2OBS. This revision is due to changes in the recommended parameters of the RNX2RTKP configuration files.
    • Added release notes "relnotes_0.7.5.txt"
  • 2025/01/31 0.8.0
    • Supported two channels of L6 message input defined in IS-QZSS-L6-006 in ppp-rtk mode: RNX2RTKP, SSR2OSR, SSR2OBS
    • Added release notes "relnotes_0.8.0.txt"
  • 2025/04/30 0.8.1
    • Supported two channels of L6 message input defined in IS-QZSS-L6-006 in vrs-rtk mode: RNX2RTKP, SSR2OBS
    • Supported settings that prioritizes the L1C signal over the L1C/A signal for QZS in misc-rnxopt1 option in ppp-rtk mode: RNX2RTKP, SSR2OSR
    • Added release notes "relnotes_0.8.1.txt"
  • 2025/06/11 0.8.2
    • Supported two channels of L6 message input defined in chapter 4.1.1.2 of IS-QZSS-L6-007: RNX2RTKP, SSR2OSR, SSR2OBS
    • Supported L6 Message Type ID change in chapter 4.1.2.1(3) of IS-QZSS-L6-007: RNX2RTKP, SSR2OBS
    • Supported two L6 signal combination defined in chapter 5.5.7.2 of IS-QZSS-L6-007: RNX2RTKP
    • Added release notes "relnotes_0.8.2.txt"
  • 2026/03/31 0.8.3
    • There are no changes to SSR2OSR and SSR2OBS. This revision is due to changes in the recommended parameters of the RNX2RTKP configuration files.
    • Added release notes "relnotes_0.8.3.txt"
  • 2026/09/10 0.8.4
    • There are no changes to SSR2OSR and SSR2OBS. This revision is due to changes in the recommended parameters of the RNX2RTKP configuration files.
    • Added release notes "relnotes_0.8.4.txt"
  • 2026/10/09 0.9.0
    • Added CLAS CMA authentication support using L6E files and the seclib library.
    • Extended QZSS satellite support to PRN 201.
    • Updated SSR2OSR, SSR2OBS, and RNX2RTKP for L6E processing and 64-bit C99 builds.
    • Added release notes "relnotes_0.9.0.txt"
  • 2026/11/06 0.9.1
    • There are no changes to SSR2OSR, SSR2OBS and RNX2RTKP.
    • Updated the antenna parameter file and earth rotation parameter (ERP) file to their latest versions.
    • Added release notes "relnotes_0.9.1.txt"

About

"CLAS Test Library (CLASLIB)" is an open software tool to provide useful information for Centimeter-Level Augmentation Service (CLAS)

Resources

Stars

60 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages