Adding more packet type information

This commit is contained in:
Cort Buffington 2013-07-08 15:41:44 -05:00
parent 8e57fba529
commit 82d02104ae
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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]),