Commit Graph

91 Commits

Author SHA1 Message Date
Cort Buffington
916ed46fef FIxed calculation of number of peers in an IPSC
Incorrect decodeing of determination of the peer-list. As it turns out,
the packet indicates the length of the list, not the number of peers.
So, take that value / 11 (length of a peer entry) for the number of
peers. Thanks to Hans for pointing this out!
2013-09-10 09:43:45 -05:00
Cort Buffington
3f9aee2c3c Fixed commend on the Group Voice feature. 2013-08-30 16:24:56 -05:00
Cort Buffington
b41cf5ff7b CLEAN UP & DOCUMENT
This was just a massive clean up and documentation festival. Many many
clean ups made for better readability and consistenty, most everything
is well commented now too.
2013-08-30 16:23:12 -05:00
Cort Buffington
75e72ce8bb Completed Group Voice Bridge
Added a function call to send a supplied packet to EVERY peer
(including master) that is active in an IPSC (except ourselves). This
completed the group voice bridge, and should facilitate EASILY adding
data and private bridging.
2013-08-28 11:06:54 -05:00
Cort Buffington
5b41354730 Cleaning out debugging items. 2013-08-27 10:32:27 -05:00
Cort Buffington
56236ec6cd Remove debugging items from TG forwarding 2013-08-27 10:23:54 -05:00
Cort Buffington
9a17d9d172 Add notes on bridging Group Voice calls 2013-08-26 08:20:35 -05:00
Cort Buffington
567204e961 Group Voice Forwarding Now Works
Group Voice forwarding now works, making this code sucessful at
bridging IPSC networks. Some things are missing, such as transmission
to all peers in an IPSC, right now, it only sends to the master, but
that's easily enough added, and my next goal.
2013-08-26 08:16:54 -05:00
Cort Buffington
dd1528567e Group Voice Re-Write Added
Group Voice re-writes of both sourc IPSC radio ID and group translation
work. Packets are not yet actually sent to the destination network.
Right now the code prints out the original packet and the re-written
packet (with hash added)
2013-08-25 16:13:23 -05:00
Cort Buffington
861e5a2055 Fixed typos 2013-08-23 07:53:48 -05:00
Cort Buffington
85a2fe9af9 Additional Work on Bridging 2013-08-23 07:52:50 -05:00
Cort Buffington
8e79cf8f8d Create Named "Labels" For Each IPSC
Obejct names for each IPSC class instantiation, so bridging code can
identify a target IPSC (class instantiaion) to call packet transmit
methods on.
2013-08-16 14:30:20 -05:00
Cort Buffington
d3940765ca commenting out stuff that doesn't work 2013-08-16 07:55:51 -05:00
Cort Buffington
1dc2dc0081 BEGIN working on bridge code
Stopped with this not completed, but mostly there. Need to fix some
references.
2013-08-08 21:48:28 -05:00
Cort Buffington
365f752c8e added missing logger statement on peer-list packet type 2013-08-07 21:54:57 -05:00
Cort Buffington
d877ba90dc Removed debugging print statements 2013-08-07 21:46:51 -05:00
Cort Buffington
53a3ed7828 WORKS CORRECTLY - COMPLETELY!!! 2013-08-07 14:15:53 -05:00
Cort Buffington
191a5c382e Cleaning up now proper peer list processing 2013-08-06 22:35:31 -05:00
Cort Buffington
86c03c7702 Finally! Proper peer list processing!!! 2013-08-06 22:33:04 -05:00
Cort Buffington
6660c8b810 Copyright added 2013-08-02 15:31:55 -05:00
Cort Buffington
e575186fc3 Work on improving peer list
Need to "update" the peer list instead of wipe it out and write a new
one. This is just started, so not implemented yet.
2013-08-01 15:45:57 -05:00
Cort Buffington
530a6fc612 Comments Added 2013-08-01 15:21:35 -05:00
Cort Buffington
5fead4ea91 added marker for next to-do item 2013-08-01 15:18:53 -05:00
Cort Buffington
ad57ed0ebb Added Peer/Master Timeout and Removal 2013-08-01 15:09:20 -05:00
Cort Buffington
244f53778a Added "self" note for self peer in the print peer-list function 2013-07-31 20:56:49 -05:00
Cort Buffington
851b0e9c4d More work on validation 2013-07-31 20:46:03 -05:00
Cort Buffington
738af072cb Update README.md 2013-07-31 14:08:31 -05:00
Cort Buffington
835011d1a8 Fixed formatting error in peer list 2013-07-31 13:58:53 -05:00
Cort Buffington
897540243a Peer List Print & More Validation 2013-07-31 12:33:31 -05:00
Cort Buffington
8f8608cbfc Started adding conditionals to validate messages
for example: if we haven't yet received a peer list from the master, we
should not be processing keep-alives from peers.
2013-07-30 11:50:29 -05:00
Cort Buffington
2e0f29fc97 Peer Validation - In Progress
Mostly done.. must find a way to allow master registration and
reception of peer list BEFORE validating incoming messages to the peer
list -- chicken and egg problem. Easily solved, but needs an EFFICIENT
solution since EVERY PACKET will be passed through this test.
2013-07-30 10:52:10 -05:00
Cort Buffington
9e049977fd log level change 2013-07-30 10:11:22 -05:00
Cort Buffington
ca22654a13 Peer validation work 2013-07-29 21:12:12 -05:00
Cort Buffington
2d0c767c11 Begin adding valid peer and master checking… partial
Not yet completed, but done in a way to pass so the code works.
2013-07-29 21:06:25 -05:00
Cort Buffington
c1f6442f07 Standardized use of binascii for hex conversions
Had been using a mix of unhexlify/hexlify and a2b_hex/b2a_hex. I
settled on the later as it's the most descriptive to me.
2013-07-29 20:51:21 -05:00
Cort Buffington
7650e7cc4d Remove Cruft in Logging 2013-07-29 13:38:59 -05:00
Cort Buffington
724f9299cb Added IPSC Authentication Validation Function
We can now pass the auth key, and a packet to this function and get a
pass/fail (True/False) return.
2013-07-29 13:23:37 -05:00
Cort Buffington
7c6899e49f Clean up debug logging for peer lists
Fixed the peer-list printing function so that it signals there is no
peer list if we've not yet received one.
2013-07-28 22:33:14 -05:00
Cort Buffington
440f3d61b4 Updated config data structure
… so it matches changes made in the last update a few minutes ago.
2013-07-28 22:25:25 -05:00
Cort Buffington
7518583e23 Moved peer-list processor to global scope
There was no reason for the IPSC class to contain the function for
processing a peer list. It makes the class more self-sustaining, but
the goal should be a *module* to handle connection maintenance. I moved
the peer list process, and built a mode decoder function from the
previos mode printing function, as well as added decoded mode items to
the data structure… and cleaned up the prining function so it doesn't
re-process the data.
2013-07-28 22:22:04 -05:00
Cort Buffington
8e7cdd7912 More naming cleanup
Making things read more easily.
2013-07-28 16:22:25 -05:00
Cort Buffington
c34357e10d Cleaned Up Several Items...
Mostly references to my_ipsc_config data structure items that are
commonly used. These received shortened names within the IPSC class…
also makes it easier to read, and should be self explanatory. Some
cruft also removed - object aliases that were no longer used.
2013-07-28 15:53:56 -05:00
Cort Buffington
8d115875f3 Implemented Keep-Alive Timers for Master & Peers
These have been open issues. They are mostly completed. Now, once a
master or peer is registered, keep-alives start, and run every
(configurable) time, unless (configurable) times are missed, and then
it de-registers the peer. The outstanding counter still needs work, but
the important parts are there.
2013-07-26 17:29:47 -05:00
Cort Buffington
819848d17c Revert "Not sure why this is needed"
This reverts commit c00627033e.
2013-07-22 21:44:53 -05:00
Cort Buffington
c00627033e Not sure why this is needed 2013-07-22 21:32:51 -05:00
Cort Buffington
961d459b58 Update requirements.txt 2013-07-22 08:20:05 -05:00
Cort Buffington
fe7d44a2da Activated "ENABLED" Status Flag in Config
If the enabled setting for an IPSC is marked False, taht IPSC will not
be activated.
2013-07-20 22:20:27 -05:00
Cort Buffington
b8e3b3f8c9 Added network name to all logging lines 2013-07-20 21:53:45 -05:00
Cort Buffington
040492c2e2 Fixed errors in the sample config
I missed a few commas in it. They are there now
2013-07-20 18:13:15 -05:00
Cort Buffington
9eddcf762b Change Logging Status
Moved most info items into debug to make it less chatty
2013-07-20 15:41:22 -05:00