Code: Select all
sudo ppscheck /dev/ttyUSB0
# Seconds nanoSecs Signals
PPS ioctl(TIOCMIWAIT) failed: 25 Inappropriate ioctl for device
While researching this problem, I also uncovered a thread [3] by bjmcculloch indicating that a previous version of the Adafruit Ultimate GPS that used the CP2104 adapter had a similar problem and that there may be an underlying hardware restriction. This is to be contrasted with a new driver I found on GitHub [4] which specifically implements ioctl functions to support PPS signals. Unfortunately, that is for an older kernel.
I'd be interested to know if anyone has gotten this device to work with PPS on `gpsd` and `ppscheck`.
[1] ioctl functions missing from cp210x driver https://github.com/torvalds/linux/blob/ ... l/cp210x.c
[2] cp2102N data sheet https://www.mouser.com/datasheet/2/368/ ... 634912.pdf
[3] cp210x hardware might not support underlying ioctl commands viewtopic.php?p=832544&hilit=Ultimate+GPS+USB+C+pps
[4] Revised cp210x driver https://github.com/fortian/cp210x/tree/master