Date   

Re: Linking dmrlink and HBlink3 #dmrlink #hblink

Cort N0MJS
 

Correct – that error is an “error" because I wrote the code that calls it one. It has been observed many times and isn’t an issue. I’ve suspected it has something to do with XNL/XCMP, but am not sure. I could have just as easily put it at the “WARNING” level instead, but wanted to see those pop out at me when they flew by, so put it at the error level.

On Dec 9, 2019, at 6:47 AM, area51now via Groups.Io <area51now@...> wrote:

The error message your seeing looks like mine when a trbo peer is connected (below is mine) every thing working fine here

ERROR 2019-12-09 04:42:22,977 (Peer-5-XN TS2) Unknown Message - Type: f0 From: 4770 Packet: f0000012a249531000


Bob
'
KB6LED

Cort Buffington
785-865-7206


Re: Linking dmrlink and HBlink3 #dmrlink #hblink

area51now@...
 

I get the same looking error when a mototrbo repeater is connected as a peer (see below)
all working good here

ERROR 2019-12-09 04:42:22,977 (Peer-5-XN TS2) Unknown Message - Type: f0 From: 4770 Packet: f0000012a249531000

I hope I am not doubling up on this message

Bob

KB6LED

-----Original Message-----
From: ai6bx via Groups.Io <ai6bx.keith@...>
To: main <main@DVSwitch.groups.io>
Sent: Sun, Dec 8, 2019 10:50 pm
Subject: Re: [DVSwitch] Linking dmrlink and HBlink3 #dmrlink #hblink

After taking a few days off, I am coming back into my config files and trying to understand an error message. Following is the log file when confbridge.py is running. Note one of my peers starts and appears to function fine and I am getting an error on the the second client connection attempts, Carlsbad.

root@AI6BX-DMR:/opt/DMRlink# python confbridge.py
INFO 2019-12-08 22:37:39,737 DMRlink 'dmrlink.py' (c) 2013 - 2015 N0MJS & the K0USY Group - SYSTEM STARTING...
INFO 2019-12-08 22:37:40,755 ID ALIAS MAPPER: 'peer_ids.json' successfully downloaded
INFO 2019-12-08 22:37:42,199 ID ALIAS MAPPER: 'subscriber_ids.json' successfully downloaded
INFO 2019-12-08 22:37:42,359 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2019-12-08 22:37:44,211 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2019-12-08 22:37:44,214 (RIFF_PEER) IPSC Instance Created: 92374, 0.0.0.0:50001
INFO 2019-12-08 22:37:44,215 (RIFF_PEER) Registering with the Master: 47.180.30.199:7000
INFO 2019-12-08 22:37:44,216 (IBEX) IPSC Instance Created: 734379, 0.0.0.0:62055
INFO 2019-12-08 22:37:44,216 (CARLSBAD) IPSC Instance Created: 92002, 0.0.0.0:62031
INFO 2019-12-08 22:37:44,217 (HB_BRIDGE) IPSC Instance Created: 12345, 0.0.0.0:62050
INFO 2019-12-08 22:37:44,218 Bridge configuration file found and imported
INFO 2019-12-08 22:37:44,218 ACL file not found or invalid - all subscriber IDs are valid
INFO 2019-12-08 22:37:44,218 (ALL IPSC SYSTEMS) Rule timer loop started
WARNING 2019-12-08 22:37:44,737 (RIFF_PEER) PeerError: Peer not in peer-list: 734377, 72.132.11.23:1024
WARNING 2019-12-08 22:37:48,515 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:37:49,216 (RIFF_PEER) Registering with the Master: 47.180.30.199:7000
WARNING 2019-12-08 22:37:49,226 (RIFF_PEER) Registration response (we requested reg) from the Master: 734379, 47.180.30.199:7000 (7 peers)
WARNING 2019-12-08 22:37:50,748 (RIFF_PEER) PeerError: Peer not in peer-list: 734377, 72.132.11.23:1024
INFO 2019-12-08 22:37:51,308 (CARLSBAD) Master Registration Packet Received from peer 734566, 76.81.231.35:50009
ERROR 2019-12-08 22:37:51,323 (CARLSBAD) Unknown Message - Type: f0 From: 734566 Packet: f0000b356600000000
INFO 2019-12-08 22:37:54,216 (RIFF_PEER), No Peer List - Requesting One From the Master
WARNING 2019-12-08 22:37:54,517 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
WARNING 2019-12-08 22:37:56,747 (RIFF_PEER) PeerError: Peer not in peer-list: 734377, 72.132.11.23:1024
INFO 2019-12-08 22:37:59,215 (RIFF_PEER), No Peer List - Requesting One From the Master
WARNING 2019-12-08 22:37:59,270 (RIFF_PEER) PeerError: Peer not in peer-list: 734, 72.132.11.23:7000
INFO 2019-12-08 22:37:59,419 (RIFF_PEER) Peer List Received from Master: 6 peers in this IPSC
INFO 2019-12-08 22:37:59,508 (RIFF_PEER) Peer Registration Request From: 734, 72.132.11.23:7000
INFO 2019-12-08 22:37:59,670 (RIFF_PEER) Peer Registration Request From: 725123, 72.132.11.23:1051
INFO 2019-12-08 22:38:00,041 (RIFF_PEER) Peer Registration Request From: 734555, 162.248.117.53:7000
INFO 2019-12-08 22:38:00,255 (RIFF_PEER) Peer Registration Request From: 734990, 72.132.11.23:50006
WARNING 2019-12-08 22:38:00,525 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:04,215 (RIFF_PEER) Registering with Peer 734555, 162.248.117.53:7000
INFO 2019-12-08 22:38:04,216 (RIFF_PEER) Registering with Peer 734990, 72.132.11.23:50006
INFO 2019-12-08 22:38:04,216 (RIFF_PEER) Registering with Peer 734377, 72.132.11.23:1024
INFO 2019-12-08 22:38:04,216 (RIFF_PEER) Registering with Peer 725123, 72.132.11.23:1051
INFO 2019-12-08 22:38:04,216 (RIFF_PEER) Registering with Peer 734, 72.132.11.23:7000
INFO 2019-12-08 22:38:04,235 (RIFF_PEER) Registration Reply From: 734555, 162.248.117.53:7000
INFO 2019-12-08 22:38:04,242 (RIFF_PEER) Registration Reply From: 734377, 72.132.11.23:1024
INFO 2019-12-08 22:38:04,247 (RIFF_PEER) Registration Reply From: 725123, 72.132.11.23:1051
INFO 2019-12-08 22:38:04,252 (RIFF_PEER) Registration Reply From: 734990, 72.132.11.23:50006
INFO 2019-12-08 22:38:04,264 (RIFF_PEER) Registration Reply From: 734, 72.132.11.23:7000
ERROR 2019-12-08 22:38:06,322 (CARLSBAD) Unknown Message - Type: f0 From: 734566 Packet: f0000b356648531000
WARNING 2019-12-08 22:38:06,523 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
WARNING 2019-12-08 22:38:12,515 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
WARNING 2019-12-08 22:38:13,135 (RIFF_PEER) PeerError: Peer not in peer-list: 20001, 67.63.96.6:1046
INFO 2019-12-08 22:38:13,271 (RIFF_PEER) Peer List Received from Master: 7 peers in this IPSC
INFO 2019-12-08 22:38:13,430 (RIFF_PEER) Peer Registration Request From: 20001, 67.63.96.6:1046
INFO 2019-12-08 22:38:14,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
WARNING 2019-12-08 22:38:18,517 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:19,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
INFO 2019-12-08 22:38:20,322 (RIFF_PEER) Peer List Received from Master: 7 peers in this IPSC
ERROR 2019-12-08 22:38:21,322 (CARLSBAD) Unknown Message - Type: f0 From: 734566 Packet: f0000b35664e531000
INFO 2019-12-08 22:38:24,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
WARNING 2019-12-08 22:38:24,535 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:29,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
WARNING 2019-12-08 22:38:30,690 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:31,421 (RIFF_PEER) Peer List Received from Master: 7 peers in this IPSC
INFO 2019-12-08 22:38:34,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
INFO 2019-12-08 22:38:34,721 (RIFF_PEER) Peer List Received from Master: 7 peers in this IPSC
ERROR 2019-12-08 22:38:36,322 (CARLSBAD) Unknown Message - Type: f0 From: 734566 Packet: f0000b356674531000
WARNING 2019-12-08 22:38:36,518 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:38,120 (RIFF_PEER) Peer List Received from Master: 6 peers in this IPSC
INFO 2019-12-08 22:38:38,121 (RIFF_PEER) Peer De-Registration Requested for: 734377
WARNING 2019-12-08 22:38:38,122 (RIFF_PEER) Peer Deleted (not in new peer list): 734377
INFO 2019-12-08 22:38:39,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
WARNING 2019-12-08 22:38:40,537 (RIFF_PEER) PeerError: Peer not in peer-list: 734377, 72.132.11.23:1024
WARNING 2019-12-08 22:38:42,553 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:44,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
INFO 2019-12-08 22:38:44,219 (ALL IPSC SYSTEMS) Rule timer loop started
INFO 2019-12-08 22:38:44,621 (RIFF_PEER) Peer List Received from Master: 6 peers in this IPSC
INFO 2019-12-08 22:38:44,621 (RIFF_PEER) Peer De-Registration Requested for: 734555
WARNING 2019-12-08 22:38:44,622 (RIFF_PEER) Peer Deleted (not in new peer list): 734555
^CINFO 2019-12-08 22:38:46,238 *** DMRLINK IS TERMINATING WITH SIGNAL 2 ***
INFO 2019-12-08 22:38:46,239 (RIFF_PEER) De-Registering self from the IPSC system
INFO 2019-12-08 22:38:46,239 (CARLSBAD) De-Registering self from the IPSC system
INFO 2019-12-08 22:38:46,239 (IBEX) De-Registering self from the IPSC system
INFO 2019-12-08 22:38:46,240 (HB_BRIDGE) De-Registering self from the IPSC system


Re: Linking dmrlink and HBlink3 #dmrlink #hblink

area51now@...
 

The error message your seeing looks like mine when a trbo peer is connected (below is mine) every thing working fine here

ERROR 2019-12-09 04:42:22,977 (Peer-5-XN TS2) Unknown Message - Type: f0 From: 4770 Packet: f0000012a249531000


Bob
'
KB6LED


Re: Linking dmrlink and HBlink3 #dmrlink #hblink

ai6bx
 

After taking a few days off, I am coming back into my config files and trying to understand an error message. Following is the log file when confbridge.py is running. Note one of my peers starts and appears to function fine and I am getting an error on the the second client connection attempts, Carlsbad.

root@AI6BX-DMR:/opt/DMRlink# python confbridge.py
INFO 2019-12-08 22:37:39,737 DMRlink 'dmrlink.py' (c) 2013 - 2015 N0MJS & the K0USY Group - SYSTEM STARTING...
INFO 2019-12-08 22:37:40,755 ID ALIAS MAPPER: 'peer_ids.json' successfully downloaded
INFO 2019-12-08 22:37:42,199 ID ALIAS MAPPER: 'subscriber_ids.json' successfully downloaded
INFO 2019-12-08 22:37:42,359 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2019-12-08 22:37:44,211 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2019-12-08 22:37:44,214 (RIFF_PEER) IPSC Instance Created: 92374, 0.0.0.0:50001
INFO 2019-12-08 22:37:44,215 (RIFF_PEER) Registering with the Master: 47.180.30.199:7000
INFO 2019-12-08 22:37:44,216 (IBEX) IPSC Instance Created: 734379, 0.0.0.0:62055
INFO 2019-12-08 22:37:44,216 (CARLSBAD) IPSC Instance Created: 92002, 0.0.0.0:62031
INFO 2019-12-08 22:37:44,217 (HB_BRIDGE) IPSC Instance Created: 12345, 0.0.0.0:62050
INFO 2019-12-08 22:37:44,218 Bridge configuration file found and imported
INFO 2019-12-08 22:37:44,218 ACL file not found or invalid - all subscriber IDs are valid
INFO 2019-12-08 22:37:44,218 (ALL IPSC SYSTEMS) Rule timer loop started
WARNING 2019-12-08 22:37:44,737 (RIFF_PEER) PeerError: Peer not in peer-list: 734377, 72.132.11.23:1024
WARNING 2019-12-08 22:37:48,515 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:37:49,216 (RIFF_PEER) Registering with the Master: 47.180.30.199:7000
WARNING 2019-12-08 22:37:49,226 (RIFF_PEER) Registration response (we requested reg) from the Master: 734379, 47.180.30.199:7000 (7 peers)
WARNING 2019-12-08 22:37:50,748 (RIFF_PEER) PeerError: Peer not in peer-list: 734377, 72.132.11.23:1024
INFO 2019-12-08 22:37:51,308 (CARLSBAD) Master Registration Packet Received from peer 734566, 76.81.231.35:50009
ERROR 2019-12-08 22:37:51,323 (CARLSBAD) Unknown Message - Type: f0 From: 734566 Packet: f0000b356600000000
INFO 2019-12-08 22:37:54,216 (RIFF_PEER), No Peer List - Requesting One From the Master
WARNING 2019-12-08 22:37:54,517 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
WARNING 2019-12-08 22:37:56,747 (RIFF_PEER) PeerError: Peer not in peer-list: 734377, 72.132.11.23:1024
INFO 2019-12-08 22:37:59,215 (RIFF_PEER), No Peer List - Requesting One From the Master
WARNING 2019-12-08 22:37:59,270 (RIFF_PEER) PeerError: Peer not in peer-list: 734, 72.132.11.23:7000
INFO 2019-12-08 22:37:59,419 (RIFF_PEER) Peer List Received from Master: 6 peers in this IPSC
INFO 2019-12-08 22:37:59,508 (RIFF_PEER) Peer Registration Request From: 734, 72.132.11.23:7000
INFO 2019-12-08 22:37:59,670 (RIFF_PEER) Peer Registration Request From: 725123, 72.132.11.23:1051
INFO 2019-12-08 22:38:00,041 (RIFF_PEER) Peer Registration Request From: 734555, 162.248.117.53:7000
INFO 2019-12-08 22:38:00,255 (RIFF_PEER) Peer Registration Request From: 734990, 72.132.11.23:50006
WARNING 2019-12-08 22:38:00,525 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:04,215 (RIFF_PEER) Registering with Peer 734555, 162.248.117.53:7000
INFO 2019-12-08 22:38:04,216 (RIFF_PEER) Registering with Peer 734990, 72.132.11.23:50006
INFO 2019-12-08 22:38:04,216 (RIFF_PEER) Registering with Peer 734377, 72.132.11.23:1024
INFO 2019-12-08 22:38:04,216 (RIFF_PEER) Registering with Peer 725123, 72.132.11.23:1051
INFO 2019-12-08 22:38:04,216 (RIFF_PEER) Registering with Peer 734, 72.132.11.23:7000
INFO 2019-12-08 22:38:04,235 (RIFF_PEER) Registration Reply From: 734555, 162.248.117.53:7000
INFO 2019-12-08 22:38:04,242 (RIFF_PEER) Registration Reply From: 734377, 72.132.11.23:1024
INFO 2019-12-08 22:38:04,247 (RIFF_PEER) Registration Reply From: 725123, 72.132.11.23:1051
INFO 2019-12-08 22:38:04,252 (RIFF_PEER) Registration Reply From: 734990, 72.132.11.23:50006
INFO 2019-12-08 22:38:04,264 (RIFF_PEER) Registration Reply From: 734, 72.132.11.23:7000
ERROR 2019-12-08 22:38:06,322 (CARLSBAD) Unknown Message - Type: f0 From: 734566 Packet: f0000b356648531000
WARNING 2019-12-08 22:38:06,523 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
WARNING 2019-12-08 22:38:12,515 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
WARNING 2019-12-08 22:38:13,135 (RIFF_PEER) PeerError: Peer not in peer-list: 20001, 67.63.96.6:1046
INFO 2019-12-08 22:38:13,271 (RIFF_PEER) Peer List Received from Master: 7 peers in this IPSC
INFO 2019-12-08 22:38:13,430 (RIFF_PEER) Peer Registration Request From: 20001, 67.63.96.6:1046
INFO 2019-12-08 22:38:14,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
WARNING 2019-12-08 22:38:18,517 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:19,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
INFO 2019-12-08 22:38:20,322 (RIFF_PEER) Peer List Received from Master: 7 peers in this IPSC
ERROR 2019-12-08 22:38:21,322 (CARLSBAD) Unknown Message - Type: f0 From: 734566 Packet: f0000b35664e531000
INFO 2019-12-08 22:38:24,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
WARNING 2019-12-08 22:38:24,535 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:29,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
WARNING 2019-12-08 22:38:30,690 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:31,421 (RIFF_PEER) Peer List Received from Master: 7 peers in this IPSC
INFO 2019-12-08 22:38:34,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
INFO 2019-12-08 22:38:34,721 (RIFF_PEER) Peer List Received from Master: 7 peers in this IPSC
ERROR 2019-12-08 22:38:36,322 (CARLSBAD) Unknown Message - Type: f0 From: 734566 Packet: f0000b356674531000
WARNING 2019-12-08 22:38:36,518 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:38,120 (RIFF_PEER) Peer List Received from Master: 6 peers in this IPSC
INFO 2019-12-08 22:38:38,121 (RIFF_PEER) Peer De-Registration Requested for: 734377
WARNING 2019-12-08 22:38:38,122 (RIFF_PEER) Peer Deleted (not in new peer list): 734377
INFO 2019-12-08 22:38:39,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
WARNING 2019-12-08 22:38:40,537 (RIFF_PEER) PeerError: Peer not in peer-list: 734377, 72.132.11.23:1024
WARNING 2019-12-08 22:38:42,553 (RIFF_PEER) PeerError: Peer not in peer-list: 734868, 47.156.178.150:50008
INFO 2019-12-08 22:38:44,216 (RIFF_PEER) Registering with Peer 20001, 67.63.96.6:50001
INFO 2019-12-08 22:38:44,219 (ALL IPSC SYSTEMS) Rule timer loop started
INFO 2019-12-08 22:38:44,621 (RIFF_PEER) Peer List Received from Master: 6 peers in this IPSC
INFO 2019-12-08 22:38:44,621 (RIFF_PEER) Peer De-Registration Requested for: 734555
WARNING 2019-12-08 22:38:44,622 (RIFF_PEER) Peer Deleted (not in new peer list): 734555
^CINFO 2019-12-08 22:38:46,238 *** DMRLINK IS TERMINATING WITH SIGNAL 2 ***
INFO 2019-12-08 22:38:46,239 (RIFF_PEER) De-Registering self from the IPSC system
INFO 2019-12-08 22:38:46,239 (CARLSBAD) De-Registering self from the IPSC system
INFO 2019-12-08 22:38:46,239 (IBEX) De-Registering self from the IPSC system
INFO 2019-12-08 22:38:46,240 (HB_BRIDGE) De-Registering self from the IPSC system


Re: Linking dmrlink and HBlink3 #dmrlink #hblink

ai6bx
 

Cort,

Do you by chance have any suggestions after the log report of my last post?

thank you,

keith


Re: Bad audio from analog_bridge

Philippe, f5rvx
 

and how to run usrpaudio.py from systemd ?

I created the service "usrpaudio.service" in which I noted:
ExecStart = /opt/Analog_Bridge/./USRPAudio.py -s> / dev / null 2> & 1
User = root

And I get the following errors:
Dec 2 23:47:43 localhost USRPAudio.py [598]: File "/opt/Analog_Bridge/./USRPAudio.py", line 164, in <module>
Dec 2 23:47:43 localhost USRPAudio.py [598]: ch = getch ()
Dec 2 23:47:43 localhost USRPAudio.py [598]: File "/opt/Analog_Bridge/./USRPAudio.py", line 145, in _getch
Dec 2 23:47:43 localhost USRPAudio.py [598]: old_settings = termios.tcgetattr (fd)
Dec 2 23:47:43 localhost USRPAudio.py [598]: termios.error: (25, 'Inappropriate ioctl for device')


Thank you so much.
Philippe

Le 04/12/2019 à 20:33, Steve N4IRS a écrit :

Glad to hear it. That's what usrpaudio.py is for.
You might want to post your command line so others can learn from it.

73, Steve N4IRS

On 12/4/2019 2:31 PM, JF via Groups.Io wrote:
Works perfect with usrpaudio.py thanks!


Re: Bad audio from analog_bridge

Patrick Perdue
 

If you can get raw PCM to stdout, you can pipe that audio to lame, then pipe lame to ezstream. No sound card, virtual or otherwise, required. You could perhaps do this with ffmpeg as well. Going the Darkice and loopback device will work if needed, too. This is how I have streamed output from op25 on a Raspberry Pi.


Re: Bad audio from analog_bridge

JF
 

Ok I see. I did’t work on that part yet but I plan to use darkice as broadcast feed.
 
I think I’ll need to install a virtual sound card and then pipe the audio into darkice.


Re: Bad audio from analog_bridge

Steve N4IRS
 

OK,
I thought you were planning to send the audio to Broadcastify.

Steve

On 12/4/19 10:08 PM, JF via Groups.Io wrote:
Hi Steve, I’m not sure what command line you are talking about.
 
My setup is:
BM<>mmdvm_bridge<>analog_bridge<>usrpaudio.py
 
Here is the command, I run those manually to monitor them.

./MMDVM_Bridge
./Analog_Bridge
./md380-emu
./USRPaudio.py
 
Usrpaudio.py throws a couple of error at launch but it works
 
Actually I run this on a debian virtual machine on my laptop, at the end I plan to run this on aws where there is no sound card so I think I’ll have a another funny troubleshooting weed-end :)


Re: Bad audio from analog_bridge

JF
 

Hi Steve, I’m not sure what command line you are talking about.
 
My setup is:
BM<>mmdvm_bridge<>analog_bridge<>usrpaudio.py
 
Here is the command, I run those manually to monitor them.

./MMDVM_Bridge
./Analog_Bridge
./md380-emu
./USRPaudio.py
 
Usrpaudio.py throws a couple of error at launch but it works
 
Actually I run this on a debian virtual machine on my laptop, at the end I plan to run this on aws where there is no sound card so I think I’ll have a another funny troubleshooting weed-end :)


Re: Bad audio from analog_bridge

Steve N4IRS
 

Glad to hear it. That's what usrpaudio.py is for.
You might want to post your command line so others can learn from it.

73, Steve N4IRS

On 12/4/2019 2:31 PM, JF via Groups.Io wrote:
Works perfect with usrpaudio.py thanks!


Re: Bad audio from analog_bridge

JF
 

Works perfect with usrpaudio.py thanks!


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
 

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#