Re: Linking dmrlink and HBlink3 #dmrlink #hblink


Cort N0MJS <n0mjs@...>
 

You should only be defining one system on the dmrlink.cfg used with IPSC_Bridge.py. It’s intended to be a one-off. There is no call forwarding between systems. If you intend to use multiple IPSC Systems, you will need a pair of IPSC_Bridge.py and HB_Bridge.py for each. I explained this previously.

Address already in use is a SOCKET address, not an IP ADDRESS. Socket address is defined as the tuple of IP Address, Protocol, Port. You already have something listening on UDP port 62059. Only one process may bind to a specific socket address.


On Dec 1, 2019, at 10:52 AM, ai6bx via Groups.Io <ai6bx.keith@...> wrote:

Doh. Yep, I bridge.py now. I am starting small to get at least one bridge working and will replicate from there once success is achieved. I am building the Moto stanzas in dmrlink.cfg as follows and then launching IPSC_Bridge.py to look for errors. Regardless of the port number I use in IPSC_Bridge.cfg, I get an error indicating it is already in use which is pretty odd, at least to me. Logic would tell me to leave the default IP alone as both systems home on the same machine. Am I missing something?
 
Dmrlink.cfg
[RIFF_PEER]
ENABLED: True
RADIO_ID: 92374
IP:
PORT: 50001
ALIVE_TIMER: 5
MAX_MISSED: 20
PEER_OPER: True
IPSC_MODE: DIGITAL
TS1_LINK: True
TS2_LINK: True
CSBK_CALL: False
RCM: False
CON_APP: False
XNL_CALL: False
XNL_MASTER: False
DATA_CALL: True
VOICE_CALL: True
MASTER_PEER: False
AUTH_ENABLED: True
AUTH_KEY: AD07911
MASTER_IP: 47.180.30.199
MASTER_PORT: 7000
GROUP_HANGTIME: 5
 
[CARLSBAD]
ENABLED: True
RADIO_ID: 734566
IP:
PORT: 62042
ALIVE_TIMER: 5
MAX_MISSED: 20
PEER_OPER: True
IPSC_MODE: DIGITAL
TS1_LINK: True
TS2_LINK: True
CSBK_CALL: False
RCM: False
CON_APP: False
XNL_CALL: False
XNL_MASTER: False
DATA_CALL: True
VOICE_CALL: True
MASTER_PEER: True
AUTH_ENABLED: True
AUTH_KEY: AD07911
# Below not used for a Master
# MASTER_IP: 1.2.3.4
# MASTER_PORT: 50000
GROUP_HANGTIME: 5
 
[IBEX]
ENABLED: True
RADIO_ID: 734379
IP:
PORT: 62055
ALIVE_TIMER: 5
MAX_MISSED: 20
PEER_OPER: True
IPSC_MODE: DIGITAL
TS1_LINK: True
TS2_LINK: True
CSBK_CALL: False
RCM: False
CON_APP: False
XNL_CALL: False
XNL_MASTER: False
DATA_CALL: True
VOICE_CALL: True
MASTER_PEER: True
AUTH_ENABLED: True
AUTH_KEY: AD07911
# Below not used for a Master
# MASTER_IP: 1.2.3.4
# MASTER_PORT: 50000
GROUP_HANGTIME: 5
 
IPSC_Bridge.py output
 
root@AI6BX-DMR:/opt/DMRlink# python IPSC_Bridge.py
INFO 2019-12-01 16:51:32,087 DMRlink 'IPSC_Bridge.py' (c) 2015 N0MJS & the K0USY Group - SYSTEM STARTING...
INFO 2019-12-01 16:51:32,087 Version 20170620
INFO 2019-12-01 16:51:32,088 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded
INFO 2019-12-01 16:51:32,088 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded
INFO 2019-12-01 16:51:32,240 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2019-12-01 16:51:34,477 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2019-12-01 16:51:34,481 (RIFF_PEER) IPSC Instance Created: 92374, 0.0.0.0:50001
INFO 2019-12-01 16:51:34,482 section = RIFF_PEER
INFO 2019-12-01 16:51:34,482 Section RIFF_PEER was not found, using DEFAULTS
INFO 2019-12-01 16:51:34,482 gateway = 127.0.0.1
INFO 2019-12-01 16:51:34,483 toGatewayPort = 31003
INFO 2019-12-01 16:51:34,483 fromGatewayPort = 62059
INFO 2019-12-01 16:51:34,483 DMRLink IPSC Bridge
INFO 2019-12-01 16:51:34,487 (RIFF_PEER) Registering with the Master: 47.180.30.199:7000
INFO 2019-12-01 16:51:34,488 (IBEX) IPSC Instance Created: 734379, 0.0.0.0:62055
INFO 2019-12-01 16:51:34,488 section = IBEX
INFO 2019-12-01 16:51:34,489 Section IBEX was not found, using DEFAULTS
INFO 2019-12-01 16:51:34,489 gateway = 127.0.0.1
INFO 2019-12-01 16:51:34,489 toGatewayPort = 31003
INFO 2019-12-01 16:51:34,489 fromGatewayPort = 62059
INFO 2019-12-01 16:51:34,489 DMRLink IPSC Bridge
Traceback (most recent call last):
  File "IPSC_Bridge.py", line 308, in <module>
    systems[system] = ambeIPSC(system, CONFIG, logger, report_server)
  File "IPSC_Bridge.py", line 96, in __init__
    self.ipsc_ambe = AMBE_IPSC(self, _name, _config, _logger, self._ambeRxPort)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 525, 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)
twisted.internet.error.CannotListenError: Couldn't listen on any:62059: [Errno 98] Address already in use.
root@AI6BX-DMR:/opt/DMRlink#
 

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