HBBridge setting up more then one link between the two


KB5PBM
 

Currently I have IPSC_Bridge configured as below.  And two masters configured in dmrlink.cfg master 1 and 2.  IPSC_Bridge works fine.  However when I try the same with HBBridge i get an error.  Is HBBridge able to do the same?  To get around this I am running two instances of HBBridge. Needed more timeslots to my C-bridge.  Its over kill I know.  But easier to exec at startup.

[DEFAULTS]
gateway = 127.0.0.1                             # IP address of Partner Application (HB_Bridge, Analog_Bridge)
fromGatewayPort = 34100                         # Port IPSC_Bridge is listening on for data  (IPSC_Bridge <--- Partner)
toGatewayPort = 34103                           # Port Partner is listening on for data  (IPSC_Bridge ---> Partner)

[MASTER]
gateway = 127.0.0.1                             # IP address of Partner Application (HB_Bridge, Analog_Bridge)
fromGatewayPort = 39400                         # Port IPSC_Bridge is listening on for data  (IPSC_Bridge <--- Partner)
toGatewayPort = 39403                           # Port Partner is listening on for data  (IPSC_Bridge ---> Partner)

[MASTER1]
gateway = 127.0.0.1                             # IP address of Partner Application (HB_Bridge, Analog_Bridge)
fromGatewayPort = 39100                         # Port IPSC_Bridge is listening on for data  (IPSC_Bridge <--- Partner)
toGatewayPort = 39103                           # Port Partner is listening on for data  (IPSC_Bridge ---> Partner)


Cort N0MJS <n0mjs@...>
 

What is the error?


On Aug 13, 2018, at 7:20 PM, KB5PBM <rob297@...> wrote:

Currently I have IPSC_Bridge configured as below.  And two masters configured in dmrlink.cfg master 1 and 2.  IPSC_Bridge works fine.  However when I try the same with HBBridge i get an error.  Is HBBridge able to do the same?  To get around this I am running two instances of HBBridge. Needed more timeslots to my C-bridge.  Its over kill I know.  But easier to exec at startup.

[DEFAULTS]
gateway = 127.0.0.1                             # IP address of Partner Application (HB_Bridge, Analog_Bridge)
fromGatewayPort = 34100                         # Port IPSC_Bridge is listening on for data  (IPSC_Bridge <--- Partner)
toGatewayPort = 34103                           # Port Partner is listening on for data  (IPSC_Bridge ---> Partner)

[MASTER]
gateway = 127.0.0.1                             # IP address of Partner Application (HB_Bridge, Analog_Bridge)
fromGatewayPort = 39400                         # Port IPSC_Bridge is listening on for data  (IPSC_Bridge <--- Partner)
toGatewayPort = 39403                           # Port Partner is listening on for data  (IPSC_Bridge ---> Partner)

[MASTER1]
gateway = 127.0.0.1                             # IP address of Partner Application (HB_Bridge, Analog_Bridge)
fromGatewayPort = 39100                         # Port IPSC_Bridge is listening on for data  (IPSC_Bridge <--- Partner)
toGatewayPort = 39103                           # Port Partner is listening on for data  (IPSC_Bridge ---> Partner)


KB5PBM
 

with config of ################################################
# HB_Bridge configuration file.
################################################

[DEFAULTS]
gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
fromGatewayPort = 38403                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
toGatewayPort = 38400                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

[IPSCBRIDGE1]
gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
fromGatewayPort = 34123                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
toGatewayPort = 34120                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

[IPSCBRIDGE2]
gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
fromGatewayPort = 34113                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
toGatewayPort = 34110                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

 

[RULES]
# Name = Old TG, New TG, New Slot
#TG_SE = 11,11,2
#TG_NA = 22,22,2
#TG_ATL = 50,50,2
#TG_WW = 33,33,2
#TG_HO = 625,625,2
 I get This error

load config file config.file
INFO 2018-08-14 04:30:33,396 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2018-08-14 04:30:33,677 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2018-08-14 04:30:33,677 HBlink 'HB_Bridge.py' (c) 2017 Mike Zingman N4IRR, N0MJS - SYSTEM STARTING...
INFO 2018-08-14 04:30:33,678 Version 20170620
ERROR 2018-08-14 04:30:33,683 Uncaught exception
Traceback (most recent call last):
  File "./HB_Bridge.py", line 243, in <module>
    systems[system] = HB_BRIDGE(system, CONFIG, logger)
  File "./HB_Bridge.py", line 101, in __init__
    self.hb_ambe = AMBE_HB(self, _name, _config, _logger, self._ambeRxPort)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 381, in __init__
    AMBE_BASE.__init__(self, _parent, _name, _config, _logger, _port)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 187, in __init__
    self.udp_port = reactor.listenUDP(self._ambeRxPort, UDP_IMPORT(self.import_datagramReceived))
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 369, in listenUDP
    p.startListening()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 178, in startListening
    self._bindSocket()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 198, in _bindSocket
    raise error.CannotListenError(self.interface, self.port, le)
CannotListenError: Couldn't listen on any:38403: [Errno 98] Address already in use.


With this config

################################################
# HB_Bridge configuration file.
################################################

#[DEFAULTS]
#gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
#fromGatewayPort = 38403                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
#toGatewayPort = 38400                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

[IPSCBRIDGE1]
gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
fromGatewayPort = 34123                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
toGatewayPort = 34120                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

[IPSCBRIDGE2]
gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
fromGatewayPort = 34113                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
toGatewayPort = 34110                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

 

[RULES]
# Name = Old TG, New TG, New Slot
#TG_SE = 11,11,2
#TG_NA = 22,22,2
#TG_ATL = 50,50,2
#TG_WW = 33,33,2
#TG_HO = 625,625,2
 Basicall default is commented out

load config file config.file
INFO 2018-08-14 04:31:43,144 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2018-08-14 04:31:43,444 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2018-08-14 04:31:43,445 HBlink 'HB_Bridge.py' (c) 2017 Mike Zingman N4IRR, N0MJS - SYSTEM STARTING...
INFO 2018-08-14 04:31:43,445 Version 20170620
ERROR 2018-08-14 04:31:43,450 Uncaught exception
Traceback (most recent call last):
  File "./HB_Bridge.py", line 243, in <module>
    systems[system] = HB_BRIDGE(system, CONFIG, logger)
  File "./HB_Bridge.py", line 101, in __init__
    self.hb_ambe = AMBE_HB(self, _name, _config, _logger, self._ambeRxPort)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 381, in __init__
    AMBE_BASE.__init__(self, _parent, _name, _config, _logger, _port)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 187, in __init__
    self.udp_port = reactor.listenUDP(self._ambeRxPort, UDP_IMPORT(self.import_datagramReceived))
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 369, in listenUDP
    p.startListening()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 178, in startListening
    self._bindSocket()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 198, in _bindSocket
    raise error.CannotListenError(self.interface, self.port, le)
CannotListenError: Couldn't listen on any:31003: [Errno 98] Address already in use.


hblink.cfg

[IPSCBRIDGE1]
MODE: MASTER
ENABLED: True
REPEAT: True
EXPORT_AMBE: False
IP:
PORT: 54022
PASSPHRASE: XXXXXXXXXX
GROUP_HANGTIME: 5

[IPSCBRIDGE2]
MODE: MASTER
ENABLED: True
REPEAT: True
EXPORT_AMBE: False
IP:
PORT: 54023
PASSPHRASE: XXXXXXXXXXX
GROUP_HANGTIME: 5


On a netstat -aepn | grep 31 nothing using that socket.


Corey Dean N3FE <n3fe@...>
 

Somewhere on your system you are using one of those ports already.  That is why it will not start.

Corey n3fe

On Tue, Aug 14, 2018 at 12:34 AM KB5PBM <rob297@...> wrote:

with config of ################################################
# HB_Bridge configuration file.
################################################

[DEFAULTS]
gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
fromGatewayPort = 38403                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
toGatewayPort = 38400                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

[IPSCBRIDGE1]
gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
fromGatewayPort = 34123                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
toGatewayPort = 34120                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

[IPSCBRIDGE2]
gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
fromGatewayPort = 34113                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
toGatewayPort = 34110                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

 

[RULES]
# Name = Old TG, New TG, New Slot
#TG_SE = 11,11,2
#TG_NA = 22,22,2
#TG_ATL = 50,50,2
#TG_WW = 33,33,2
#TG_HO = 625,625,2
 I get This error

load config file config.file
INFO 2018-08-14 04:30:33,396 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2018-08-14 04:30:33,677 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2018-08-14 04:30:33,677 HBlink 'HB_Bridge.py' (c) 2017 Mike Zingman N4IRR, N0MJS - SYSTEM STARTING...
INFO 2018-08-14 04:30:33,678 Version 20170620
ERROR 2018-08-14 04:30:33,683 Uncaught exception
Traceback (most recent call last):
  File "./HB_Bridge.py", line 243, in <module>
    systems[system] = HB_BRIDGE(system, CONFIG, logger)
  File "./HB_Bridge.py", line 101, in __init__
    self.hb_ambe = AMBE_HB(self, _name, _config, _logger, self._ambeRxPort)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 381, in __init__
    AMBE_BASE.__init__(self, _parent, _name, _config, _logger, _port)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 187, in __init__
    self.udp_port = reactor.listenUDP(self._ambeRxPort, UDP_IMPORT(self.import_datagramReceived))
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 369, in listenUDP
    p.startListening()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 178, in startListening
    self._bindSocket()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 198, in _bindSocket
    raise error.CannotListenError(self.interface, self.port, le)
CannotListenError: Couldn't listen on any:38403: [Errno 98] Address already in use.


With this config

################################################
# HB_Bridge configuration file.
################################################

#[DEFAULTS]
#gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
#fromGatewayPort = 38403                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
#toGatewayPort = 38400                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

[IPSCBRIDGE1]
gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
fromGatewayPort = 34123                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
toGatewayPort = 34120                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

[IPSCBRIDGE2]
gateway = 127.0.0.1                             # IP address of Partner Application (IPSC_Bridge, Analog_Bridge)
fromGatewayPort = 34113                         # Port HB_Bridge is listening on for data  (HB_Bridge <--- Partner)
toGatewayPort = 34110                           # Port Partner is listening on for data  (HB_Bridge ---> Partner)

 

[RULES]
# Name = Old TG, New TG, New Slot
#TG_SE = 11,11,2
#TG_NA = 22,22,2
#TG_ATL = 50,50,2
#TG_WW = 33,33,2
#TG_HO = 625,625,2
 Basicall default is commented out

load config file config.file
INFO 2018-08-14 04:31:43,144 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2018-08-14 04:31:43,444 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2018-08-14 04:31:43,445 HBlink 'HB_Bridge.py' (c) 2017 Mike Zingman N4IRR, N0MJS - SYSTEM STARTING...
INFO 2018-08-14 04:31:43,445 Version 20170620
ERROR 2018-08-14 04:31:43,450 Uncaught exception
Traceback (most recent call last):
  File "./HB_Bridge.py", line 243, in <module>
    systems[system] = HB_BRIDGE(system, CONFIG, logger)
  File "./HB_Bridge.py", line 101, in __init__
    self.hb_ambe = AMBE_HB(self, _name, _config, _logger, self._ambeRxPort)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 381, in __init__
    AMBE_BASE.__init__(self, _parent, _name, _config, _logger, _port)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 187, in __init__
    self.udp_port = reactor.listenUDP(self._ambeRxPort, UDP_IMPORT(self.import_datagramReceived))
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 369, in listenUDP
    p.startListening()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 178, in startListening
    self._bindSocket()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 198, in _bindSocket
    raise error.CannotListenError(self.interface, self.port, le)
CannotListenError: Couldn't listen on any:31003: [Errno 98] Address already in use.


hblink.cfg

[IPSCBRIDGE1]
MODE: MASTER
ENABLED: True
REPEAT: True
EXPORT_AMBE: False
IP:
PORT: 54022
PASSPHRASE: XXXXXXXXXX
GROUP_HANGTIME: 5

[IPSCBRIDGE2]
MODE: MASTER
ENABLED: True
REPEAT: True
EXPORT_AMBE: False
IP:
PORT: 54023
PASSPHRASE: XXXXXXXXXXX
GROUP_HANGTIME: 5


On a netstat -aepn | grep 31 nothing using that socket.


KB5PBM
 

If i run two instances with just the DEFAULT stanza it works fine.  I run "netstat -aepn | grep 3" shows nothing using those ports except the IPSC_Bridge listening for HB_Bridge.  I can just run two instances.  it works the same.