This ISR sample application uses a tclsh script managed by an EEM applet to stream NMEA formatted location data in UDP packets (with configurable port number) to a defined target. TCLSH script is in the attached zip file and also requires the following CLI commands.
! CLI commands required:
event manager environment server "your server ip address" event manager environment udp_port "your udp port"
event manager applet NMEA event syslog pattern "LINEPROTO-5-UPDOWN: Line protocol on Interface Cellular[0-9\/]+, changed state to up" maxrun 31536000 action 010 cli command "enable" action 020 syslog msg "NMEA streaming starting now" action 030 cli command "tclsh flash:stream_NMEA2.tcl $server $udp_port"
aaa new-model aaa authentication login nologin none aaa authorization exec nologin none controller Cellular <number> lte gps mode standalone "lte gps nmea ip" for 819. "lte gps nmea" for all other platforms