Commit Graph

112 Commits

Author SHA1 Message Date
Cort Buffington
b20309c776 Reorganization 1 class per system type
Separating HBSYSTEM into HBMASTER and HBPEER to reduce memory footprint
and allow easier updating. Also cleaning up and normalizing the
OPENBRIDGE class to match the standard HB classes better.
2018-09-26 09:02:11 -05:00
Cort Buffington
5511a3b25a OpenBridge initial commit
The beginning of OpenBridge support. It does not yet do anything, so
downloading this is worthless for all but selected alpha testers.
2018-09-25 20:17:55 -05:00
Cort Buffington
d1af0560c4 INITIAL BRANCH COMMIT
0) CONFIGURATION FILES WILL NEED UPDATED TO CHANGE NAMING
CONFIGURATIONS!

1) Updated use of socket address instead of discrete IP/port. This will
be needed for socket address based validation and is faster… duh…
should have done this in the beginning.

2) Changed all references to “clients” as HBP systems to “peers”. This
sets the stage for having a peer_id and an originator_id for DMRD
packets.

3) Found and squashed a number of other random bugs, including the
registration ACL not working in confbridge or bridge_all.

4) router is now retired. confbridge is the future.
2018-08-07 16:05:27 -06:00
Cort Buffington
d633595d5e DMRD "repeater id" field always set to the "client"
If Master -> Client, it is the client’s radio ID, if it is Client ->
Master, it is the client radio ID. This appears to be the most correct
way, though admittedly not enforced, and might be better to use the
originating repeater/hotspot radio ID, but that’s for another day.
2018-08-02 14:21:51 -05:00
Cort Buffington
506c69008c Startup with no ACL defined 2018-07-29 18:09:44 -05:00
Cort Buffington
bbf1e68099 Added HBP Registration ACL
Works like the ACL in hb_confbridge.py
2018-07-11 18:55:45 -05:00
Cort Buffington
9210053572
Merge pull request #22 from krippendorf/patch-1
Missing config/logger args for class AMBE
2018-07-09 13:53:53 -05:00
Frank Werner-Krippendorf
2659ac06c6
Update hblink.py 2018-07-09 20:39:13 +02:00
Frank Werner-Krippendorf
57aeccce8a
Missing config/logger args for class AMBE 2018-07-09 19:12:57 +02:00
Cort Buffington
416ab12c5f Updated all applications to support socket reporting 2018-07-03 21:51:20 -05:00
Matthew
39b3950af8 Refactor validation to optimise code 2018-06-25 18:23:56 +01:00
Matthew
8558bbcaa3 Allows user to disable strict validation when connecting to master 2018-06-23 20:25:19 +01:00
Cort Buffington
2a4295743a Continued work on socket-based reporting
Status table and bridge table now work. Log messages are sending, but
formatting isn’t right yet, so they present as unknown messages.
2018-06-22 09:28:31 -05:00
Cort Buffington
cff902d3f9 Fixed missing ping count in master stats from clients 2018-06-21 11:45:37 -05:00
Cort Buffington
df264042d6 Adding hooks for socket reporting.
NOT WORKING YET… but it is a start
2018-06-19 16:02:38 -05:00
Cort Buffington
76daa63bd0 Fixing the WRONG commit. 2018-03-08 11:53:53 -06:00
Cort Buffington
ef0778f16e Verifying local changes 2018-03-08 11:42:44 -06:00
Cort Buffington
cae890522a Local commit for verification 2018-03-08 11:29:50 -06:00
Cort Buffington
a62630211f Bug Fix - Master -> Client
Was not re-writing the destination Radio ID on egress packets
2018-02-13 18:58:20 -06:00
Cort Buffington
afd1370143 Fix "limbo" state in the re-connection cycle
Changed the logic for determining when to “re-connect” to the master.
This will break if the ping timeout is set too low. Recommend keeping
it at 4-5 seconds.
2018-02-12 12:16:56 -06:00
Cort Buffington
050aad7cb3 HIGH PROFILE FIXES - Addresses Brandmeister disconnects.
Random:
  * Commented out per-packet debug logger lines (uncomment locally when needed)

Problems Fixed:

CLIENT MODE: hblink.py

hblink.py did not properly parse the radio_id in a MSTNAK message. We searched for
"MSTN" - 4 characters, and neglected to parse the radio ID at offset 6, after "MSTNAK"
instead of after 4, "MSTN".... rookie mistake:

  elif _command == 'MSTN':    # Actually MSTNAK -- a NACK from the master
  -                _radio_id = _data[4:8]
  +                _radio_id = _data[6:10]

hblink.py did not actually keep track of missed keep-alives correctly to reset a connection.
This has probably been fixed. At worst, no more broken than it was. Would like to have
some folks test it by breaking connectivty froma client to master and watch what happens.

Appears to work now.
2018-02-02 14:14:30 -06:00
Cort Buffington
bec229fbe7 Squashed minor logging bug
Minor logging bug when master receives and unknown command. It tried to
log _radio_id, but in this case, we don’t know the radio ID since we
can’t parse the HBP PDU.
2017-08-09 22:33:47 -05:00
Rob
9cb014a55c Added ability to send options to master 2016-12-26 21:36:22 -05:00
Rob
aafb321f8a Added ability to send options to master 2016-12-26 10:47:34 -05:00
Cort Buffington
0652abef02 Descriptions added (below copyright and license area) 2016-12-19 08:36:17 -06:00
Cort Buffington
6675f2e83d update 2016-12-17 11:40:43 -06:00
Cort Buffington
d561daddcd Move utilities to their own package 2016-12-15 12:10:29 -06:00
Cort Buffington
03e2dff984 Cleanup errors 2016-11-25 08:14:36 -06:00
Cort Buffington
9fefedc2fd fix typos 2016-11-23 15:07:10 -06:00
Cort Buffington
eeec223609 Modularized... I think this works. 2016-11-23 15:01:05 -06:00
Cort Buffington
13e99a9392 Update __license__ 2016-11-22 20:02:09 -06:00
Cort Buffington
a4e0fd7e69 reference config 2016-11-21 19:54:23 -06:00
Cort Buffington
cc54b76ce8 added pointer to CONFIG & explicit arguments to the class 2016-11-21 19:46:07 -06:00
Cort Buffington
05b5fcbf10 License Change 2016-11-21 19:13:32 -06:00
Cort Buffington
16198ba889 Better way to build hex strings 2016-11-20 10:16:53 -06:00
root
02fda0e31d Match 'client' login from MMDVMHost 2016-11-18 09:27:57 -05:00
Cort Buffington
992c157d3a error correction 2016-11-17 17:21:31 -06:00
Cort Buffington
3138de53c9 Fixes from G4EML 2016-11-17 16:37:43 -06:00
Cort Buffington
25c240d0a3 CLIENT and MASTER are now one class 2016-11-16 11:05:01 -06:00
Cort Buffington
f0fa590e72 refactoring - INCOMPLETE 2016-11-08 16:16:22 -06:00
Cort Buffington
2fbe26fb42 general progress 2016-11-01 19:49:13 -05:00
Cort Buffington
4690f5470d Missing parameter 2016-09-25 16:36:01 -05:00
Cort Buffington
4d46baa357 Added data type/voice sequence field 2016-09-22 09:12:38 -05:00
Cort Buffington
fa18a9814f Update file info 2016-09-13 16:30:01 -05:00
Cort Buffington
a07b0dd45e Integrate alias downloader 2016-09-12 11:26:41 -05:00
phl0
93561eecd3
Add some more information to log output 2016-09-02 21:14:53 +02:00
phl0
d903d46bd0
Remove trailing spaces 2016-09-01 21:36:31 +02:00
phl0
87f6247752
Remove whitespace in empty lines 2016-09-01 21:33:47 +02:00
phl0
59d15e95a7
Add callsign output to repeater messages 2016-09-01 21:19:30 +02:00
phl0
0195f773d2 Revert "Add callsign to repeat messages"
This reverts commit 0987e2478e.
2016-09-01 18:22:12 +02:00