Skip to content

Commit

Permalink
gpsd_messages_count.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Matija Nalis committed Jun 23, 2014
1 parent f227db0 commit 2376df6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,5 @@ A0A2 00 03F4 00A3 0014 CB5A 8E 02 03 01 43 03 71 00 00 00 00 00 00 00 00 00 00
- parse_newfmt.pl - checks new binary protocol (in .gp2 container format) for validity and outputs debug

run as ./parse_strace.pl | ./parse_newfmt.pl

- gpsd_messages_count.sh - shows SiRF binary messages that gpsd(8) parsed (or didn't)
4 changes: 4 additions & 0 deletions gpsd_messages_count.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
perl -pe 's/length \d+/length xxx/g; s/SiRF: DBG 0xff.*$/SiRF: DBG 0xff: xxxx/g; s/SiRF: DEV 0xe1.*$/SiRF: DEV 0xe1: xxxx/g; s,DATA: DOPS computed/reported.*$,DATA: DOPS computed/reported: xxx,g; s/PROG: SiRF: NTPD valid time MID 0x(\d+).*/PROG: SiRF: NTPD valid time MID $1/g;s/DATA: SiRF: MND 0x02: time.*$/DATA: SiRF: MND 0x02: time=xxx, lat,lon,alt/g; s/PROG: 50B: SF:(\d+).*$/PROG: 50B: SF:$1 xxxx/g' "$@" |
sort | uniq -c | egrep '50B:|SiRF:|DOPS'

0 comments on commit 2376df6

Please sign in to comment.