Snippets

AT+CFUN=1
AT*E2GPSCTL=1,6,0
AT*E2GPSNPD

(
    exec <>/dev/ttyACM2 >&0 && \
    chat -s -S -- \
        '*EMRDY: 1' 'AT' \
        'OK' 'AT+CFUN=1' \
        'OK' 'AT*E2GPSCTL=1,1,0' \
        'OK' 'AT*E2GPSNPD' \
        'OK' '' && \
    exec socat stdio pty,link=/tmp/gps,group=uucp
)

gpsd -N -b -n /tmp/gps