gps - How can i emulate streaming data from a serial port? -


i have text file containing nmea (gps) data i' replay com port application i'm building can read it.

i considered writing quick c# console app loop on file don't have com ports. appraoch require virtual com port , i'm not sure challenges entail.

i looked @ gpsgate. nice product doesn't seem replay nmea files on 1 of virtual com ports.

how can stream existing text file simulate gps on serial connection? prefer serial port, rather mocking, avoid reworking application i'm developing , facilitate use other applications use gps on serial ports don't have source code.

update 1 - downloaded trial version of virtual serial port driver eltima , within few minutes had c# code writing serial port , appearing in termite. yes, works $100 seems excessive i'm trying accomplish. open source or free commercial preferred.

gpsfake part of gpsd project

gpsfake test harness gpsd , clients. opens pty (pseudo-tty), launches gpsd instance thinks slave side of pty gps device, , repeatedly feeds contents of 1 or more test logfiles through master side gps. if there multiple logfiles, sentences them interleaved in order files specified.

you can port output virtual serial via /usr/bin/gpspipe -r | socat - pty,link=/tmp/gpsd.pty,raw using gpspipe, gpsd project, picked choose.

it posix compliant.