Date   

Re: Linking dmrlink and HBlink3 #dmrlink #hblink

ai6bx
 

Okay, for giggles, I swapped the port in my dmrlink.cfg script and instead of the secondary port inserted the repeater master port number. I am pretty sure this is not what I had entered last time it was working however at least I now have a response as follows:

 

INFO 2019-12-03 21:45:12,289 (CARLSBAD) Master Registration Packet Received from peer 734566, 69.75.245.178:50009

ERROR 2019-12-03 21:45:12,316 (CARLSBAD) Unknown Message - Type: f0 From: 734566 Packet: f0000b356600000000

 

I hope this decodes to something helpful.

 

Keith

 

From: <main@DVSwitch.groups.io> on behalf of "Cort N0MJS via Groups.Io" <n0mjs@...>
Reply-To: <main@DVSwitch.groups.io>
Date: Tuesday, December 3, 2019 at 5:41 AM
To: "main@dvswitch.groups.io" <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Linking dmrlink and HBlink3 #dmrlink #hblink

 

The telling thing here is what I do NOT see. I don’t see a repeater trying to connect at all. There’s nothing here to diagnose until we at least see a repeater trying to connect to it.

 

For troubleshooting like this, I recommend not running IPSC_Bridge.py or confbridge.py but just run dmrlink.py by itself – there’s less logging, etc. in the way and it’s easier to focus on the link establishment issue.



On Dec 2, 2019, at 10:03 PM, ai6bx via Groups.Io <ai6bx.keith@...> wrote:

 

Court,

 

I have stripped back to a single system in the DMRlink.cfg file however it is not linking with the DMR repeater I have operating in peer mode. Previously, last week, this was working however I stupidly did not save a copy of that cfg file as I realized there were too many other issues and started back from scratch building in the version containing the IPSC_Bridge. Following is the output I receive when starting either IPSC_Bridge or conf bridge. Both seem to give the same response which, appears to me, indicates a handshake is not occurring. 

 

root@AI6BX-DMR:/opt/DMRlink# python IPSC_Bridge.py

INFO 2019-12-02 19:46:18,392 DMRlink 'IPSC_Bridge.py' (c) 2015 N0MJS & the K0USY Group - SYSTEM STARTING...

INFO 2019-12-02 19:46:18,392 Version 20170620

INFO 2019-12-02 19:46:18,393 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded

INFO 2019-12-02 19:46:18,393 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded

INFO 2019-12-02 19:46:18,526 ID ALIAS MAPPER: peer_ids dictionary is available

INFO 2019-12-02 19:46:20,215 ID ALIAS MAPPER: subscriber_ids dictionary is available

INFO 2019-12-02 19:46:20,217 (CARLSBAD) IPSC Instance Created: 54321, 149.28.84.243:50009

INFO 2019-12-02 19:46:20,218 section = CARLSBAD

INFO 2019-12-02 19:46:20,218 Section CARLSBAD was not found, using DEFAULTS

INFO 2019-12-02 19:46:20,218 gateway = 127.0.0.1

INFO 2019-12-02 19:46:20,218 toGatewayPort = 50009

INFO 2019-12-02 19:46:20,219 fromGatewayPort = 62031

INFO 2019-12-02 19:46:20,219 DMRLink IPSC Bridge

^CINFO 2019-12-02 19:46:55,986 *** DMRLINK IS TERMINATING WITH SIGNAL 2 ***

INFO 2019-12-02 19:46:55,986 De-Registering from IPSC CARLSBAD

root@AI6BX-DMR:/opt/DMRlink# python confbridge.py

INFO 2019-12-02 19:47:12,244 DMRlink 'dmrlink.py' (c) 2013 - 2015 N0MJS & the K0USY Group - SYSTEM STARTING...

INFO 2019-12-02 19:47:12,245 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded

INFO 2019-12-02 19:47:12,245 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded

INFO 2019-12-02 19:47:12,372 ID ALIAS MAPPER: peer_ids dictionary is available

INFO 2019-12-02 19:47:14,055 ID ALIAS MAPPER: subscriber_ids dictionary is available

INFO 2019-12-02 19:47:14,056 (CARLSBAD) IPSC Instance Created: 54321, 149.28.84.243:50009

INFO 2019-12-02 19:47:14,057 Bridge configuration file found and imported

INFO 2019-12-02 19:47:14,058 ACL file not found or invalid - all subscriber IDs are valid

INFO 2019-12-02 19:47:14,058 (ALL IPSC SYSTEMS) Rule timer loop started

 

Following is what my dmrlink.cfg looks like.

 

[CARLSBAD]

ENABLED: True

RADIO_ID: 54321

IP:149.28.84.243

PORT: 50009

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

 

 

 

From: <main@DVSwitch.groups.io> on behalf of "Cort N0MJS via Groups.Io" <n0mjs@...>
Reply-To: <main@DVSwitch.groups.io>
Date: Sunday, December 1, 2019 at 9:27 AM
To: "main@dvswitch.groups.io" <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Linking dmrlink and HBlink3 #dmrlink #hblink

 

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#

 

 

 

Cort Buffington

785-865-7206

 


Re: Linking dmrlink and HBlink3 #dmrlink #hblink

ai6bx
 

Frustrating is all I can say right now. I have gone through the ports and IP addresses on both ends to be certain they are correct, checked all my firewall rules to see if something somehow changed, tried different Internet connections, worked with Vultr tech support and even built the needed codes into the Vultr firewall on my server to see if anything would change and nothing works that did not before. I also flipped programming on the repeater over to BM briefly to ensure the card was still working and that it actually would connect and that worked fine. I also rewrote my scripts with no success. The repeater will also ping.

 

From: <main@DVSwitch.groups.io> on behalf of "Cort N0MJS via Groups.Io" <n0mjs@...>
Reply-To: <main@DVSwitch.groups.io>
Date: Tuesday, December 3, 2019 at 5:41 AM
To: "main@dvswitch.groups.io" <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Linking dmrlink and HBlink3 #dmrlink #hblink

 

The telling thing here is what I do NOT see. I don’t see a repeater trying to connect at all. There’s nothing here to diagnose until we at least see a repeater trying to connect to it.

 

For troubleshooting like this, I recommend not running IPSC_Bridge.py or confbridge.py but just run dmrlink.py by itself – there’s less logging, etc. in the way and it’s easier to focus on the link establishment issue.



On Dec 2, 2019, at 10:03 PM, ai6bx via Groups.Io <ai6bx.keith@...> wrote:

 

Court,

 

I have stripped back to a single system in the DMRlink.cfg file however it is not linking with the DMR repeater I have operating in peer mode. Previously, last week, this was working however I stupidly did not save a copy of that cfg file as I realized there were too many other issues and started back from scratch building in the version containing the IPSC_Bridge. Following is the output I receive when starting either IPSC_Bridge or conf bridge. Both seem to give the same response which, appears to me, indicates a handshake is not occurring. 

 

root@AI6BX-DMR:/opt/DMRlink# python IPSC_Bridge.py

INFO 2019-12-02 19:46:18,392 DMRlink 'IPSC_Bridge.py' (c) 2015 N0MJS & the K0USY Group - SYSTEM STARTING...

INFO 2019-12-02 19:46:18,392 Version 20170620

INFO 2019-12-02 19:46:18,393 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded

INFO 2019-12-02 19:46:18,393 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded

INFO 2019-12-02 19:46:18,526 ID ALIAS MAPPER: peer_ids dictionary is available

INFO 2019-12-02 19:46:20,215 ID ALIAS MAPPER: subscriber_ids dictionary is available

INFO 2019-12-02 19:46:20,217 (CARLSBAD) IPSC Instance Created: 54321, 149.28.84.243:50009

INFO 2019-12-02 19:46:20,218 section = CARLSBAD

INFO 2019-12-02 19:46:20,218 Section CARLSBAD was not found, using DEFAULTS

INFO 2019-12-02 19:46:20,218 gateway = 127.0.0.1

INFO 2019-12-02 19:46:20,218 toGatewayPort = 50009

INFO 2019-12-02 19:46:20,219 fromGatewayPort = 62031

INFO 2019-12-02 19:46:20,219 DMRLink IPSC Bridge

^CINFO 2019-12-02 19:46:55,986 *** DMRLINK IS TERMINATING WITH SIGNAL 2 ***

INFO 2019-12-02 19:46:55,986 De-Registering from IPSC CARLSBAD

root@AI6BX-DMR:/opt/DMRlink# python confbridge.py

INFO 2019-12-02 19:47:12,244 DMRlink 'dmrlink.py' (c) 2013 - 2015 N0MJS & the K0USY Group - SYSTEM STARTING...

INFO 2019-12-02 19:47:12,245 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded

INFO 2019-12-02 19:47:12,245 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded

INFO 2019-12-02 19:47:12,372 ID ALIAS MAPPER: peer_ids dictionary is available

INFO 2019-12-02 19:47:14,055 ID ALIAS MAPPER: subscriber_ids dictionary is available

INFO 2019-12-02 19:47:14,056 (CARLSBAD) IPSC Instance Created: 54321, 149.28.84.243:50009

INFO 2019-12-02 19:47:14,057 Bridge configuration file found and imported

INFO 2019-12-02 19:47:14,058 ACL file not found or invalid - all subscriber IDs are valid

INFO 2019-12-02 19:47:14,058 (ALL IPSC SYSTEMS) Rule timer loop started

 

Following is what my dmrlink.cfg looks like.

 

[CARLSBAD]

ENABLED: True

RADIO_ID: 54321

IP:149.28.84.243

PORT: 50009

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

 

 

 

From: <main@DVSwitch.groups.io> on behalf of "Cort N0MJS via Groups.Io" <n0mjs@...>
Reply-To: <main@DVSwitch.groups.io>
Date: Sunday, December 1, 2019 at 9:27 AM
To: "main@dvswitch.groups.io" <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Linking dmrlink and HBlink3 #dmrlink #hblink

 

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#

 

 

 

Cort Buffington

785-865-7206

 


Re: Bad audio from analog_bridge

Mike KB8JNM
 

Just a guess...

but I would look at the analog side in the area of other radios didital noise getting back through. Perhaps from a synthesized tx/rx where you are using a analog sound dongle.

On 12/3/2019 1:03 PM, JF via Groups.Io wrote:
Hi all,
I trying to broadcast our club bm tg to broadcastify.  I installed mmdvm_bridge, analog_bridge and md380-emu as I don’t have ambe dongle.  I’m monitoring the audio output with nc -l -u -p 32001 | play -t s16 -r 8k -c 1 - 
 
I heard the voice correctly but there is a background noise kinda a pulse, I tried playing with gain but no luck, is someone can help with this?
 
JF


Re: Bad audio from analog_bridge

Mike Zingman - N4IRR
 

You are listening to USRP audio packets.  USRP is a simple wrapper around the audio, but it is causing your sound issues.  Look at USRPAudio.py for a python solution to audio monitoring.


Bad audio from analog_bridge

JF
 

Hi all,
I trying to broadcast our club bm tg to broadcastify.  I installed mmdvm_bridge, analog_bridge and md380-emu as I don’t have ambe dongle.  I’m monitoring the audio output with nc -l -u -p 32001 | play -t s16 -r 8k -c 1 - 
 
I heard the voice correctly but there is a background noise kinda a pulse, I tried playing with gain but no luck, is someone can help with this?
 
JF


Re: Linking dmrlink and HBlink3 #dmrlink #hblink

ai6bx
 

That is what I thought as I have seen active negotiation in previous iterations of this config as I do still see in the file where I created a peer connecting back to the current Moto 5700 master. I will drop back and try dmrlink.py for analysis as you suggest.

 

From: <main@DVSwitch.groups.io> on behalf of "Cort N0MJS via Groups.Io" <n0mjs@...>
Reply-To: <main@DVSwitch.groups.io>
Date: Tuesday, December 3, 2019 at 5:41 AM
To: "main@dvswitch.groups.io" <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Linking dmrlink and HBlink3 #dmrlink #hblink

 

The telling thing here is what I do NOT see. I don’t see a repeater trying to connect at all. There’s nothing here to diagnose until we at least see a repeater trying to connect to it.

 

For troubleshooting like this, I recommend not running IPSC_Bridge.py or confbridge.py but just run dmrlink.py by itself – there’s less logging, etc. in the way and it’s easier to focus on the link establishment issue.



On Dec 2, 2019, at 10:03 PM, ai6bx via Groups.Io <ai6bx.keith@...> wrote:

 

Court,

 

I have stripped back to a single system in the DMRlink.cfg file however it is not linking with the DMR repeater I have operating in peer mode. Previously, last week, this was working however I stupidly did not save a copy of that cfg file as I realized there were too many other issues and started back from scratch building in the version containing the IPSC_Bridge. Following is the output I receive when starting either IPSC_Bridge or conf bridge. Both seem to give the same response which, appears to me, indicates a handshake is not occurring. 

 

root@AI6BX-DMR:/opt/DMRlink# python IPSC_Bridge.py

INFO 2019-12-02 19:46:18,392 DMRlink 'IPSC_Bridge.py' (c) 2015 N0MJS & the K0USY Group - SYSTEM STARTING...

INFO 2019-12-02 19:46:18,392 Version 20170620

INFO 2019-12-02 19:46:18,393 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded

INFO 2019-12-02 19:46:18,393 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded

INFO 2019-12-02 19:46:18,526 ID ALIAS MAPPER: peer_ids dictionary is available

INFO 2019-12-02 19:46:20,215 ID ALIAS MAPPER: subscriber_ids dictionary is available

INFO 2019-12-02 19:46:20,217 (CARLSBAD) IPSC Instance Created: 54321, 149.28.84.243:50009

INFO 2019-12-02 19:46:20,218 section = CARLSBAD

INFO 2019-12-02 19:46:20,218 Section CARLSBAD was not found, using DEFAULTS

INFO 2019-12-02 19:46:20,218 gateway = 127.0.0.1

INFO 2019-12-02 19:46:20,218 toGatewayPort = 50009

INFO 2019-12-02 19:46:20,219 fromGatewayPort = 62031

INFO 2019-12-02 19:46:20,219 DMRLink IPSC Bridge

^CINFO 2019-12-02 19:46:55,986 *** DMRLINK IS TERMINATING WITH SIGNAL 2 ***

INFO 2019-12-02 19:46:55,986 De-Registering from IPSC CARLSBAD

root@AI6BX-DMR:/opt/DMRlink# python confbridge.py

INFO 2019-12-02 19:47:12,244 DMRlink 'dmrlink.py' (c) 2013 - 2015 N0MJS & the K0USY Group - SYSTEM STARTING...

INFO 2019-12-02 19:47:12,245 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded

INFO 2019-12-02 19:47:12,245 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded

INFO 2019-12-02 19:47:12,372 ID ALIAS MAPPER: peer_ids dictionary is available

INFO 2019-12-02 19:47:14,055 ID ALIAS MAPPER: subscriber_ids dictionary is available

INFO 2019-12-02 19:47:14,056 (CARLSBAD) IPSC Instance Created: 54321, 149.28.84.243:50009

INFO 2019-12-02 19:47:14,057 Bridge configuration file found and imported

INFO 2019-12-02 19:47:14,058 ACL file not found or invalid - all subscriber IDs are valid

INFO 2019-12-02 19:47:14,058 (ALL IPSC SYSTEMS) Rule timer loop started

 

Following is what my dmrlink.cfg looks like.

 

[CARLSBAD]

ENABLED: True

RADIO_ID: 54321

IP:149.28.84.243

PORT: 50009

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

 

 

 

From: <main@DVSwitch.groups.io> on behalf of "Cort N0MJS via Groups.Io" <n0mjs@...>
Reply-To: <main@DVSwitch.groups.io>
Date: Sunday, December 1, 2019 at 9:27 AM
To: "main@dvswitch.groups.io" <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Linking dmrlink and HBlink3 #dmrlink #hblink

 

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#

 

 

 

Cort Buffington

785-865-7206

 


Re: Linking dmrlink and HBlink3 #dmrlink #hblink

Cort N0MJS <n0mjs@...>
 

The telling thing here is what I do NOT see. I don’t see a repeater trying to connect at all. There’s nothing here to diagnose until we at least see a repeater trying to connect to it.

For troubleshooting like this, I recommend not running IPSC_Bridge.py or confbridge.py but just run dmrlink.py by itself – there’s less logging, etc. in the way and it’s easier to focus on the link establishment issue.

On Dec 2, 2019, at 10:03 PM, ai6bx via Groups.Io <ai6bx.keith@...> wrote:

Court,
 
I have stripped back to a single system in the DMRlink.cfg file however it is not linking with the DMR repeater I have operating in peer mode. Previously, last week, this was working however I stupidly did not save a copy of that cfg file as I realized there were too many other issues and started back from scratch building in the version containing the IPSC_Bridge. Following is the output I receive when starting either IPSC_Bridge or conf bridge. Both seem to give the same response which, appears to me, indicates a handshake is not occurring. 
 
root@AI6BX-DMR:/opt/DMRlink# python IPSC_Bridge.py
INFO 2019-12-02 19:46:18,392 DMRlink 'IPSC_Bridge.py' (c) 2015 N0MJS & the K0USY Group - SYSTEM STARTING...
INFO 2019-12-02 19:46:18,392 Version 20170620
INFO 2019-12-02 19:46:18,393 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded
INFO 2019-12-02 19:46:18,393 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded
INFO 2019-12-02 19:46:18,526 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2019-12-02 19:46:20,215 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2019-12-02 19:46:20,217 (CARLSBAD) IPSC Instance Created: 54321, 149.28.84.243:50009
INFO 2019-12-02 19:46:20,218 section = CARLSBAD
INFO 2019-12-02 19:46:20,218 Section CARLSBAD was not found, using DEFAULTS
INFO 2019-12-02 19:46:20,218 gateway = 127.0.0.1
INFO 2019-12-02 19:46:20,218 toGatewayPort = 50009
INFO 2019-12-02 19:46:20,219 fromGatewayPort = 62031
INFO 2019-12-02 19:46:20,219 DMRLink IPSC Bridge
^CINFO 2019-12-02 19:46:55,986 *** DMRLINK IS TERMINATING WITH SIGNAL 2 ***
INFO 2019-12-02 19:46:55,986 De-Registering from IPSC CARLSBAD
root@AI6BX-DMR:/opt/DMRlink# python confbridge.py
INFO 2019-12-02 19:47:12,244 DMRlink 'dmrlink.py' (c) 2013 - 2015 N0MJS & the K0USY Group - SYSTEM STARTING...
INFO 2019-12-02 19:47:12,245 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded
INFO 2019-12-02 19:47:12,245 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded
INFO 2019-12-02 19:47:12,372 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2019-12-02 19:47:14,055 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2019-12-02 19:47:14,056 (CARLSBAD) IPSC Instance Created: 54321, 149.28.84.243:50009
INFO 2019-12-02 19:47:14,057 Bridge configuration file found and imported
INFO 2019-12-02 19:47:14,058 ACL file not found or invalid - all subscriber IDs are valid
INFO 2019-12-02 19:47:14,058 (ALL IPSC SYSTEMS) Rule timer loop started
 
Following is what my dmrlink.cfg looks like.
 
[CARLSBAD]
ENABLED: True
RADIO_ID: 54321
IP:149.28.84.243
PORT: 50009
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
 
 
 
From: <main@DVSwitch.groups.io> on behalf of "Cort N0MJS via Groups.Io" <n0mjs@...>
Reply-To: <main@DVSwitch.groups.io>
Date: Sunday, December 1, 2019 at 9:27 AM
To: "main@dvswitch.groups.io" <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Linking dmrlink and HBlink3 #dmrlink #hblink
 
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#
 
 


Cort Buffington
785-865-7206


Re: Linking dmrlink and HBlink3 #dmrlink #hblink

ai6bx
 

Court,

 

I have stripped back to a single system in the DMRlink.cfg file however it is not linking with the DMR repeater I have operating in peer mode. Previously, last week, this was working however I stupidly did not save a copy of that cfg file as I realized there were too many other issues and started back from scratch building in the version containing the IPSC_Bridge. Following is the output I receive when starting either IPSC_Bridge or conf bridge. Both seem to give the same response which, appears to me, indicates a handshake is not occurring.

 

root@AI6BX-DMR:/opt/DMRlink# python IPSC_Bridge.py

INFO 2019-12-02 19:46:18,392 DMRlink 'IPSC_Bridge.py' (c) 2015 N0MJS & the K0USY Group - SYSTEM STARTING...

INFO 2019-12-02 19:46:18,392 Version 20170620

INFO 2019-12-02 19:46:18,393 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded

INFO 2019-12-02 19:46:18,393 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded

INFO 2019-12-02 19:46:18,526 ID ALIAS MAPPER: peer_ids dictionary is available

INFO 2019-12-02 19:46:20,215 ID ALIAS MAPPER: subscriber_ids dictionary is available

INFO 2019-12-02 19:46:20,217 (CARLSBAD) IPSC Instance Created: 54321, 149.28.84.243:50009

INFO 2019-12-02 19:46:20,218 section = CARLSBAD

INFO 2019-12-02 19:46:20,218 Section CARLSBAD was not found, using DEFAULTS

INFO 2019-12-02 19:46:20,218 gateway = 127.0.0.1

INFO 2019-12-02 19:46:20,218 toGatewayPort = 50009

INFO 2019-12-02 19:46:20,219 fromGatewayPort = 62031

INFO 2019-12-02 19:46:20,219 DMRLink IPSC Bridge

^CINFO 2019-12-02 19:46:55,986 *** DMRLINK IS TERMINATING WITH SIGNAL 2 ***

INFO 2019-12-02 19:46:55,986 De-Registering from IPSC CARLSBAD

root@AI6BX-DMR:/opt/DMRlink# python confbridge.py

INFO 2019-12-02 19:47:12,244 DMRlink 'dmrlink.py' (c) 2013 - 2015 N0MJS & the K0USY Group - SYSTEM STARTING...

INFO 2019-12-02 19:47:12,245 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded

INFO 2019-12-02 19:47:12,245 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded

INFO 2019-12-02 19:47:12,372 ID ALIAS MAPPER: peer_ids dictionary is available

INFO 2019-12-02 19:47:14,055 ID ALIAS MAPPER: subscriber_ids dictionary is available

INFO 2019-12-02 19:47:14,056 (CARLSBAD) IPSC Instance Created: 54321, 149.28.84.243:50009

INFO 2019-12-02 19:47:14,057 Bridge configuration file found and imported

INFO 2019-12-02 19:47:14,058 ACL file not found or invalid - all subscriber IDs are valid

INFO 2019-12-02 19:47:14,058 (ALL IPSC SYSTEMS) Rule timer loop started

 

Following is what my dmrlink.cfg looks like.

 

[CARLSBAD]

ENABLED: True

RADIO_ID: 54321

IP:149.28.84.243

PORT: 50009

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

 

 

 

From: <main@DVSwitch.groups.io> on behalf of "Cort N0MJS via Groups.Io" <n0mjs@...>
Reply-To: <main@DVSwitch.groups.io>
Date: Sunday, December 1, 2019 at 9:27 AM
To: "main@dvswitch.groups.io" <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Linking dmrlink and HBlink3 #dmrlink #hblink

 

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#

 

 


Re: Im Lost...

Cort N0MJS <n0mjs@...>
 

There are a number of tutorials out there. To be honest, I’ve not paid attention to a lot of them. When I helped clean up the how-to last week, I realized that, while a lot of the things out there work, they include unnecessary or duplicative steps.

Here’s a modified list of steps I just used Deb 10 x64 to verify them:

# as root
apt-get update
apt-get upgrade -y
apt-get install git -y
apt-get install python3-pip -y
apt-get install python3-twisted -y
pip3 install dmr-utils3

# as a regular user (it's safer this way)

cp HBlink3/hblink-SAMPLE.cfg HBlink3/hblink.cfg
cp HBlink3/rules_SAMPLE.py HBlink3/rules.py

Edit the cfg and rules files to your needs.

On Dec 2, 2019, at 9:06 AM, Skyler Fennell <electricity440@...> wrote:

This guy made a very good YouTube and article series on how to do it: 

On Mon, Dec 2, 2019 at 7:45 AM <sean.riddle@...> wrote:
I wanna say i was there but cant be certain for sure... i started this project yesterday @ 7:30am its now almost  10am the next day. i appreciate the nudge i know i can do this i know im just missing something... 



Cort Buffington
785-865-7206


Re: Im Lost...

Skyler Fennell
 

This guy made a very good YouTube and article series on how to do it: 

On Mon, Dec 2, 2019 at 7:45 AM <sean.riddle@...> wrote:
I wanna say i was there but cant be certain for sure... i started this project yesterday @ 7:30am its now almost  10am the next day. i appreciate the nudge i know i can do this i know im just missing something... 


Re: Im Lost...

Sean R. KC3QWF
 

I wanna say i was there but cant be certain for sure... i started this project yesterday @ 7:30am its now almost  10am the next day. i appreciate the nudge i know i can do this i know im just missing something... 


Re: Im Lost...

Cort N0MJS <n0mjs@...>
 

You should be over on the HBlink subgroup. We posted step-by-step install instructions there just last week.



On Dec 2, 2019, at 8:08 AM, sean.riddle@... wrote:

I have been beating my head off the wall over this and i feel like i am so close i can hear it....

i got a jumbo spot and a nice gd77 im trying to make... i guess... a Ad-Hoc DMR network NO INTERWBS

ive tried multiple thing

1. setting up Deb and installing HBlink and it kept erroring out with some complaining about py.
2.setting up EA5GVK's wonderful rpi image. 
3. googling for hours on end to find a soloution. 

help please!!!

Cort Buffington
785-865-7206


Im Lost...

Sean R. KC3QWF
 

I have been beating my head off the wall over this and i feel like i am so close i can hear it....

i got a jumbo spot and a nice gd77 im trying to make... i guess... a Ad-Hoc DMR network NO INTERWBS

ive tried multiple thing

1. setting up Deb and installing HBlink and it kept erroring out with some complaining about py.
2.setting up EA5GVK's wonderful rpi image. 
3. googling for hours on end to find a soloution. 

help please!!!


Simplify script USRPAudio.py for monitoring audio only. #analog_bridge #USRPAudio.py #analog_bridge

Philippe, f5rvx
 

Hi all,
Firstly I'm not sure that my question is acceptable on this group ... but I do not see what subgroup would be more appropriate (it may be missing a subgroup "stupid questions> / dev / null"
;)

I would like to use USRPAudio.py only for audio monitoring (no screen, no keyboard on my orange pi). So I want to run this script as a service in systemd ... but there is no console and it ends logically with errors!
Ok: it's normal since it is not intended for this purpose ... but I am not able to modify this script to remove only the minimum: a track or a little help would be nice ;)
Thank you !
----
That's what I find as errors (from /var/log/daemon.log) :
Dec  2 12:52:52 localhost USRPAudio.py[1953]:   File "/opt/Analog_Bridge/./USRPAudio.py", line 164, in <module>
Dec  2 12:52:52 localhost USRPAudio.py[1953]:     ch = getch()
Dec  2 12:52:52 localhost USRPAudio.py[1953]:   File "/opt/Analog_Bridge/./USRPAudio.py", line 145, in _getch
Dec  2 12:52:52 localhost USRPAudio.py[1953]:     old_settings = termios.tcgetattr(fd)
Dec  2 12:52:52 localhost USRPAudio.py[1953]: termios.error: (25, 'Inappropriate ioctl for device')
Dec  2 12:52:52 localhost USRPAudio.py[1953]: Start audio thread
Dec  2 12:52:52 localhost USRPAudio.py[1953]: Unhandled exception in thread started by
Dec  2 12:52:52 localhost USRPAudio.py[1953]: sys.excepthook is missing
Dec  2 12:52:52 localhost USRPAudio.py[1953]: lost sys.stderr
Dec  2 12:52:52 localhost USRPAudio.py[1953]: Unhandled exception in thread started by
Dec  2 12:52:52 localhost USRPAudio.py[1953]: sys.excepthook is missing
Dec  2 12:52:52 localhost USRPAudio.py[1953]: lost sys.stderr
Dec  2 12:52:52 localhost systemd[1]: usrpaudio.service: Main process exited, code=exited, status=1/FAILURE
Dec  2 12:52:52 localhost systemd[1]: usrpaudio.service: Failed with result 'exit-code'.




Re: Image for Raspberry pi3 with Debian 10 Buster with DVSWICTH SERVER, HBLINK3 AND HBMONITOR.

mfj_986
 

Hi Ken
I have trying to install from scratch but nothing work.
Could tell me th complete process u use for installing from scratch. 
73 Raymond F6JIG 



Envoyé depuis mon smartphone.


-------- Message d'origine --------
De : ken@...
Date : 02/12/2019 06:08 (GMT+01:00)
À : main@DVSwitch.groups.io
Objet : Re: [DVSwitch] Image for Raspberry pi3 with Debian 10 Buster with DVSWICTH SERVER, HBLINK3 AND HBMONITOR.

Hello,
I have installed the 2.0 image of Joaquin's Software
It works fine on C4FM, NXDN and P25. The problem I am having is
Dmr does not work on transmit. I have installed from scratch twice with same results, no DMR transmit. Are there any changes other than using the configuration scripts for DVSWITCH First configuration & Update Image. The only other changes I have made are changing language to en_US  in  NXDNGateway.ini, P25Gateway.ini, and DMRGateway.ini
Thanks,
Ken Smith K6EFJ 


Re: Disconnection after 45 seconds

Steve N4IRS
 

Mike,
Great news. Thanks for the update.

Steve

Sent via smoke signal (AT&T)


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of VK4SED <vk4sed@...>
Sent: Sunday, December 1, 2019 10:47:18 PM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Disconnection after 45 seconds
 
Hi Steve
Just an update. Thru trial and error I discovered the problem is Telstra my internet provider which apparently is blocking Port 46001 on the cellist network. Because I Changed the SIM card to another provider and boom!  No registration . So now I need to change the port in dvswitch. 
73’s
Mike


Re: Disconnection after 45 seconds

VK4SED
 
Edited

Hi Steve
Just an update. Thru trial and error I discovered the problem is Telstra my internet provider which apparently is blocking Port 46001 on the cellist network. Because I Changed the SIM card to another provider and boom!  No registration issue DVSM stays connected . So now I need to change the port in dvswitch. 
73’s
Mike


Re: traffic from XLX breaks the bridge

Steve N4IRS
 

Patrick,
Good to hear your issue is solved. Please, the next time you have a issue and someone is walking you through troubleshooting, let someone know you are going in another troubleshooting direction.

Steve N4IRS

On 12/1/19 10:10 PM, Patrick Perdue wrote:
Well, the root cause has been identified and fixed. Apparently, Brandmeister did actually give me that interlink I asked for months ago, but I never got a notification about it. This was breaking things, because I hadn't implemented my side of the interlink. Adrian (VK4TUX) logged into my system and figured out what was going on. Now I have a nice working interlink between my XLX reflector and Brandmeister, with DVSwitch handling the bridge between Brandmeister and my Allstar link, which I will now probably move to the XLX reflector, because it makes sense to do that.


Re: traffic from XLX breaks the bridge

Patrick Perdue
 

Well, the root cause has been identified and fixed. Apparently, Brandmeister did actually give me that interlink I asked for months ago, but I never got a notification about it. This was breaking things, because I hadn't implemented my side of the interlink. Adrian (VK4TUX) logged into my system and figured out what was going on. Now I have a nice working interlink between my XLX reflector and Brandmeister, with DVSwitch handling the bridge between Brandmeister and my Allstar link, which I will now probably move to the XLX reflector, because it makes sense to do that.


Re: traffic from XLX breaks the bridge

Patrick Perdue
 

XLX log:

I: 2019-12-01 19:02:46.038 MMDVM_Bridge:
I: 2019-12-01 19:02:46.038 Portions Copyright (C) 2018 DVSwitch, INAD.
I: 2019-12-01 19:02:46.038 Hacks by Mike N4IRR and Steve N4IRS
I: 2019-12-01 19:02:46.038 =

4501 - 4520 of 9925