Timepulse
The u-blox module outputs a configurable pulse signal on GPIO 5. This is typically used as a PPS (Pulse Per Second) signal for time synchronization.
| Field |
C++ Type |
Description |
active |
bool |
Enable or disable the timepulse output |
fixedPulse |
Pulse |
Pulse configuration when the receiver has a GNSS fix |
pulseWhenNoFix |
optional<Pulse> |
Optional separate pulse config when there is no fix. If omitted, no pulse is output without a fix |
polarity |
ETimepulsePinPolarity |
Which edge aligns with the top of the second |
| Field |
C++ Type |
Description |
frequency |
uint32_t |
Pulse frequency in Hz |
pulseWidth |
float |
Duty cycle as a fraction — 0.0 to 0.99 |
| Value |
C++ |
C |
Python |
| Rising edge at top of second |
RisingEdgeAtTopOfSecond |
JP_GNSS_TIMEPULSE_POLARITY_RISING_EDGE |
RISING_EDGE |
| Falling edge at top of second |
FallingEdgeAtTopOfSecond |
JP_GNSS_TIMEPULSE_POLARITY_FALLING_EDGE |
FALLING_EDGE |
Note
Kernel PPS Conflict — If you use the kernel PPS driver (dtoverlay=pps-gpio,gpiopin=5) for chrony/gpsd, do not call enableTimepulse() from the library — both use GPIO 5 and cannot coexist.