Ian Gough
 · Co-Founder@Timebeat

Configuring a Timecard mini Module with your own Raspberry Pi

The Timecard mini eco-system has several modules, each with its own configuration parameters.

The below details the configuration for each module. This configuration will be placed in the Secondary source section of the timebeat.yml file. The primary source will remain the same for all modules as they all utilise the PPS input as a primary source:

PPS Input reference:

# 1 Pulse-per-second input config example. 1-PPS out can be configured using Timebeat CLI
      - protocol:          pps
        interface:         eth0         
        pin:               0            
        index:             0            

The below configuration is for the various modules, insert where appropriate.

The Essential:

# Open Timecard Mini Essentials & Mini 1st generation
      - protocol:     timebeat_opentimecard_mini   # Timebeat Timecard Mini
        device:       '/dev/ttyAMA0'             # Serial device path
        baud:         9600                     # Serial device baud rate
        card_config:  ['gnss:signal:gps+glonass+galileo']
        offset:       235000000            

The Lite:

# Open Timecard Mini Lite
      - protocol:     timebeat_opentimecard_mini   # Timebeat Timecard Mini
        device:       '/dev/ttyAMA0'             # Serial device path
        baud:         38400                     # Serial device baud rate
        card_config:  ['gnss:signal:gps+glonass+galileo']
        offset:       200000000          

The PT:

# Open Timecard Mini PT
      - protocol:     timebeat_opentimecard_mini_pt   #
        device:       '/dev/ttyAMA0'             #
        baud:         115200                     # Serial device baud rate
        card_config:  ['gnss:signal:gps+glonass+galileo']
        offset:       2000000                  

Things to consider with these configurations.

The serial device must match what your Raspberry Pi is configured to.
The above is based on some of the defaults that a CM5 presents. In general, the serial connection is serial0 this can present itself as ttyAMA0 or ttyS0

The below snippets should be present in your /boot/firmware/config.txt file and /boot/firmware/cmdline.txt file

confing.txt:

#TIMEBEAT GNSS MODULE CONFIGURATION
enable_uart=1
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5

dtoverlay=disable-bt

ENABLE FOR PT MODULE
#dtparam=i2c_arm=on
#dtoverlay=i2c_baudrate=400000
#dtparam=i2c_vc=off
#dtoverlay=i2c-mux,pca9548,addr=0x70

#ENABLE HIGH PRECISION NIC ON PT MODULE 
#dtoverlay=noeth

[pi4]
# Run as fast as firmware / board allows
arm_boost=1
cmdline.txt:console=ttyAMA2,115200 console=ttyAMA0,115200   ..........