Re: HBLink Parrot Settings


Cort N0MJS <n0mjs@...>
 

You’re running two copies of hblink.py:

hb_confbridge.py will call hblink.py underneath it (as a module)
hb_parrot.py will call hblink.py underneath it (as a module)

These are the two programs you should be starting. Nothing else, just hb_confbridge.py and hb_parrot.py

Both of those, as I pointed out in the beginning will instantiate their own copies of hblink.py. You’ll either need duplicate copies of the hblink directory for this, or make sure and call one copy with an alternate configuration file – which id looks like you’re doing with hblink_parrot.cfg – so I assume that hblink.cfg (default name) is what you’re letting hb_confbridge.py get called with.

So, on two the config files. When I read your hblink.cfg file I find:

3 separate HB systems are created:

Global-Master, which is a “master”, listening on all IP interfaces, UDP port 54000
Global-Client, which is a “client” (mimics a repeater), using the loopback interface, UDP port 54021, connecting to a master on same machine, loopback interface, master is on port 54000
Parrot-Client, which is a “client” (mimics a repeater), using the loopback interface, UDP port 54018, connecting to a master on same machine, loopback interface, master is on port 54004

Let’s move on to hblink_parrot.cfg:

I see one HB system created:

Papagei-Master, which is a “master”, listening on all IP interfaces, UDP Port 54004


And I see hb_confbridge_rules.py that connect both clients to each other:

BRIDGES = {
    'hblink': [
            {'SYSTEM': 'Global-Client', 'TS': 2, 'TGID': 9990, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'NONE', 'ON': [], 'OFF': []},
            {'SYSTEM': 'Parrot-Client', 'TS': 2, 'TGID': 9990, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'NONE', 'ON': [], 'OFF': []},
        ]
}


*********************************************

First off, Global Client is completely unnecessary

You only need [Global-Master] and [Parrot-Client] for hb_confbridge.py

Then connect them together with hb_confbridge_py as such:

BRIDGES = {
    'hblink': [
            {'SYSTEM': ‘Global-Master', 'TS': 2, 'TGID': 9990, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'NONE', 'ON': [], 'OFF': []},
            {'SYSTEM': 'Parrot-Client', 'TS': 2, 'TGID': 9990, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'NONE', 'ON': [], 'OFF': []},
        ]
}

I do not know why you’re getting port already in use – clearly someone else is already binding to a port used. I’d check your system to see what process has bound itself to that port.


















On Mar 18, 2018, at 12:56 PM, kbluetkemeier via Groups.Io <kbluetkemeier@...> wrote:

[Edited Message Follows]

Today I try it, but its killed :-(


root@Pi:~/HBlink# ./hb_confbridge.py
DEBUG 2018-03-18 18:58:50,896 Logging system started, anything from here on gets logged
INFO 2018-03-18 18:58:50,897 ID ALIAS MAPPER: 'peer_ids.csv' is current, not downloaded
INFO 2018-03-18 18:58:50,898 ID ALIAS MAPPER: 'subscriber_ids.csv' is current, not downloaded
INFO 2018-03-18 18:58:50,899 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2018-03-18 18:58:51,781 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2018-03-18 18:58:51,784 ID ALIAS MAPPER: talkgroup_ids dictionary is available
INFO 2018-03-18 18:58:51,786 Routing bridges file found and bridges imported
INFO 2018-03-18 18:58:51,787 ACL file found, importing entries. This will take about 1.5 seconds per 1 million IDs
Killed


maybe you can write step by step ?
How i activate the Parrot in the cofig? I find only the way to start the hb_parrot.py but when I defined two Master on the hblink.cfg and I start the confbridge.py or hblink.py he say the ports a used (its correct!)

thank you
Do1KBL, Kim

--
Cort Buffington
H: +1-785-813-1501
M: +1-785-865-7206





Join main@DVSwitch.groups.io to automatically receive all group messages.