From 82d02104ae3ad10d469feb4dfef71b6bf0fe6212 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Mon, 8 Jul 2013 15:41:44 -0500 Subject: [PATCH] Adding more packet type information --- README.md | 8 ++++---- ipsc.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 03971fc..3f44175 100644 --- a/README.md +++ b/README.md @@ -118,14 +118,14 @@ PEER LIST RESPONSE: Byte 1 - 0x00 = Unknown Byte 2 - 0x00 = Unknown Byte 3 - BIT FLAGS: - x... .... = Set to 1 if RDAC call + x... .... = CBSK Message .x.. .... = Unknwon - default to 0 ..x. .... = 3rd Party Application? (set by c-Bridge, SMARTPTT) ...x xxxx = Unknown - default to 0 Byte 4 = BIT FLAGS: - x... .... = RDAC related? - default to 0 - .x.. .... = RDAC related? - default to 0 - ..x. .... = RDAC related? - default to 0 + x... .... = XCMP/XNL - default to 0 + .x.. .... = XCMP/XNL - default to 0 + ..x. .... = XCMP/XNL - default to 0 ...x .... = Set if packets are authenticated .... x... = Set if voice calls are supported .... .x.. = Set if data calls are supported diff --git a/ipsc.py b/ipsc.py index 7a4f4d4..5c04d42 100644 --- a/ipsc.py +++ b/ipsc.py @@ -247,6 +247,7 @@ class IPSC(DatagramProtocol): self._config['MASTER']['STATUS']['CONNECTED'] = 2 _num_peers = int(str(int(binascii.b2a_hex(data[5:7]), 16))[1:]) logger.info(' There are %s peers in this IPSC Network', _num_peers) + del self._config['PEERS'][:] for i in range(7, (_num_peers*11)+7, 11): self._config['PEERS'].append({ 'RADIO_ID': binascii.b2a_hex(data[i:i+4]),