diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2007-12-25 23:51:56 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2007-12-25 23:51:56 +0000 |
commit | 775bd4547876947d9f0678b90d03d64afefecec1 (patch) | |
tree | 5ad16a0ee5b4f31dcb6addf27e4e2a02fee733d7 /packet_states.h | |
parent | daac71e7d0db04ff4720bd41307c1e0b8ce16232 (diff) | |
download | gpsd-775bd4547876947d9f0678b90d03d64afefecec1.tar.gz |
Make the packet sniffer a bit more picky...
about accepting TNT or Garmin Simple Text messages. Otherwise, they
often falsely accept "line noise" while sniffing for high data rate
devices
Diffstat (limited to 'packet_states.h')
-rw-r--r-- | packet_states.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/packet_states.h b/packet_states.h index b3a0af95..2bfe9c78 100644 --- a/packet_states.h +++ b/packet_states.h @@ -65,10 +65,26 @@ #endif /* ZODIAC_ENABLE */ #if defined(TNT_ENABLE) || defined(GARMINTXT_ENABLE) - TNT_LEADER, /* saw True North status leader '@' */ - /* Garmin Simple Text starts with @ leader */ + AT_LEADER, /* saw True North status leader '@' */ + /* Garmin Simple Text starts with @ leader */ #endif +#ifdef TNT_ENABLE + TNT_CMDCHAR, /* one of: B C F I W X */ + TNT_RECOGNIZED, +#endif + +#ifdef GARMINTXT_ENABLE + GARMINTXT_NUM1, /* Garmin Simple Text starts with a YYMMDD date */ + GARMINTXT_NUM2, /* Attempt to match that to reduce wrong sniffs */ + GARMINTXT_NUM3, + GARMINTXT_NUM4, + GARMINTXT_NUM5, + GARMINTXT_NUM6, + GARMINTXT_RECOGNIZED, +#endif + + #ifdef EVERMORE_ENABLE EVERMORE_LEADER_1, /* a DLE after having seen EverMore data */ EVERMORE_LEADER_2, /* seen opening STX of EverMore packet */ |