[Allstar Digital] Install problem dmrgateway

Robert Newberry N1XBM at amsat.org
Sun Feb 28 16:15:29 EST 2016


Steve, that appeared to fix it, I got a few things to tweak but it looks
close, Im about to head out and will have to get back at it later.

root at repeater:/etc# ./rc.local
DMRLink Gateway
Setting [GENERAL] outputAudioDevice -> /dev/null
Setting [GENERAL] inputAudioDevice -> /dev/null
Setting [GENERAL] decoderFallBack -> false
Setting [GENERAL] useMicrophone -> false
Setting [GENERAL] useVox -> true
Setting [GENERAL] voxDecay -> 2
Setting [GENERAL] voxTrigger -> 200
Setting [AMBE_AUDIO] server -> 127.0.0.1
Setting [AMBE_AUDIO] fromDMRPort -> 31000
Setting [AMBE_AUDIO] toDMRPort -> 31003
Setting [USRP] server -> 127.0.0.1
Setting [USRP] toASLPort -> 32001
Setting [USRP] fromASLPort -> 34001
Setting [USRP] aslAudio -> AUDIO_USE_AGC
Setting [USRP] agcGain -> -20
Setting [USRP] dmrAudio -> AUDIO_USE_BPF
Setting [USRP] dmrGain -> 0.35
Setting [DV3000] server -> 127.0.0.1
Setting [DV3000] port -> 2460
ioctl reset error
ioctl speed error
ioctl stereo error
ioctl setfmt error
Audio In/Out Device: /dev/null
Open UDP listener on 127.0.0.1:31000
Open USRP on 127.0.0.1:32001
Begin DV3000 decode
Using hardware AMBE decoder
Starting DMRLink --> USRP thread
Open UDP listener on 127.0.0.1:34001
Starting USRP --> DMRLink thread
root at repeater:/etc# Subscriber file has been updated. 24491 IDs imported
Subscriber file has been updated. 24491 IDs imported
INFO DMRlink 'ambe_audio.py' (c) 2015 N0MJS & the K0USY Group - SYSTEM
STARTING...
INFO (AMBE_PEER) IPSC Instance Created: 12345, 192.168.0.203:52345
INFO section = AMBE_PEER
ERROR Section AMBE_PEER was not found, using DEFAULTS
INFO debug = False
INFO outToFile = False
INFO outToUDP = True
INFO gateway = 127.0.0.1
INFO toGatewayPort = 31000
INFO remoteControlPort = 31002
INFO fromGatewayPort = 31003
INFO gatewayDmrId = 0
INFO tgFilter = 9
INFO txTg = 9
INFO txTs = 2
INFO DMRLink ambe server
Error: gatewayDmrId must be set (greater than zero)


On Sun, Feb 28, 2016 at 3:57 PM, Steve Zingman <szingman at msgstor.com> wrote:

> Overwrite all copies of dmrlink.py in /opt/dmrlink/ and below with the new
> dmrlink.py in /srv/DMRlink
>
> On 02/28/2016 01:42 PM, Robert Newberry wrote:
>
> Its OK Steve, appreciate your efforts as always. I'll work around your
> schedule. I will be around all day, and leaving in the evening for dinner
> at my parents Usually home be 7pm.
>
> On Sun, Feb 28, 2016 at 1:40 PM, Steve Zingman <szingman at msgstor.com>
> wrote:
>
>> I'll have to troubleshoot when I get home
>>
>> Sent via smoke signal (AT&T 4G LTE)
>>
>> On Feb 28, 2016, at 1:38 PM, Robert Newberry < <N1XBM at amsat.org>
>> N1XBM at amsat.org> wrote:
>>
>> I have, peer, subscriber, talkgroup
>>
>> On Sun, Feb 28, 2016 at 1:24 PM, Steve Zingman < <szingman at msgstor.com>
>> szingman at msgstor.com> wrote:
>>
>>> And you have all the csv files in /opt/dmrlink?
>>>
>>> Sent via smoke signal (AT&T 4G LTE)
>>>
>>> On Feb 28, 2016, at 1:22 PM, Robert Newberry < <N1XBM at amsat.org>
>>> N1XBM at amsat.org> wrote:
>>>
>>> root at repeater:/opt/dmrlink/ambe_audio# ls -l subscriber_ids.csv
>>> -rw-r--r-- 1 root root 1630189 Feb 28 13:07 subscriber_ids.csv
>>> root at repeater:/opt/dmrlink/ambe_audio# ls -l talkgroup_ids.csv
>>> -rw-r--r-- 1 root root 256 Feb 28 13:07 talkgroup_ids.csv
>>>
>>> So the owner has read and write, and everyone else just write.
>>>
>>> On Sun, Feb 28, 2016 at 1:15 PM, Steve Zingman < <szingman at msgstor.com>
>>> szingman at msgstor.com> wrote:
>>>
>>>> What are the permissions on the file?
>>>>
>>>> Sent via smoke signal (AT&T 4G LTE)
>>>>
>>>> On Feb 28, 2016, at 1:14 PM, Robert Newberry < <N1XBM at amsat.org>
>>>> N1XBM at amsat.org> wrote:
>>>>
>>>> Well I tried as you suggested I am still getting the same error. Would
>>>> a file permission be causing this issue?
>>>>
>>>> File "/opt/dmrlink/ambe_audio/ambe_audio.py", line 19, in <module>
>>>>     from dmrlink import IPSC, NETWORK, networks, logger, int_id,
>>>> hex_str_3, hex_str_4, get_info, talkgroup_ids, peer_ids, PATH,
>>>> get_subscriber_info, reread_subscribers
>>>> ImportError: cannot import name get_subscriber_info
>>>>
>>>>
>>>> On Sun, Feb 28, 2016 at 1:07 PM, Steve Zingman < <szingman at msgstor.com>
>>>> szingman at msgstor.com> wrote:
>>>>
>>>>> Try to copy it to /opt/dmrlink/ambe_audio
>>>>>
>>>>> Sent via smoke signal (AT&T 4G LTE)
>>>>>
>>>>> On Feb 28, 2016, at 12:59 PM, Robert Newberry < <N1XBM at amsat.org>
>>>>> N1XBM at amsat.org> wrote:
>>>>>
>>>>> I am able to open in nano /opt/dmrlink/subscriber_ids.csv everything
>>>>> looks ok, I see a bunch of IDs and names. I noticed that its not executable.
>>>>>
>>>>>
>>>>> On Sun, Feb 28, 2016 at 12:53 PM, Steve Zingman <
>>>>> <szingman at msgstor.com>szingman at msgstor.com> wrote:
>>>>>
>>>>>> Check for subscriber_ids.csv in /opt/darling
>>>>>>
>>>>>> Sent via smoke signal (AT&T 4G LTE)
>>>>>>
>>>>>> On Feb 28, 2016, at 12:48 PM, Robert Newberry < <N1XBM at amsat.org>
>>>>>> N1XBM at amsat.org> wrote:
>>>>>>
>>>>>> OK resolved one issue with 0.0.0.0:52307 I ran rc.local twice and
>>>>>> had a couple of instances. I went thru and killed duplicate processes and
>>>>>> that errror cleared up here is the results of netstat -unap
>>>>>>
>>>>>> root at repeater:~# netstat -unap
>>>>>> Active Internet connections (servers and established)
>>>>>> Proto Recv-Q Send-Q Local Address           Foreign Address
>>>>>> State       PID/Program name
>>>>>> udp        0      0 0.0.0.0:34001           0.0.0.0:*
>>>>>> 279/DMRGateway
>>>>>> udp        0      0 127.0.0.1:32001         0.0.0.0:*
>>>>>> 277/asterisk
>>>>>> udp        0      0 0.0.0.0:31000           0.0.0.0:*
>>>>>> 279/DMRGateway
>>>>>> udp        0      0 0.0.0.0:50001           0.0.0.0:*
>>>>>> 234/python
>>>>>> udp        0      0 0.0.0.0:2460            0.0.0.0:*
>>>>>> 221/AMBEserverGPIO
>>>>>> udp        0      0 0.0.0.0:4569            0.0.0.0:*
>>>>>> 277/asterisk
>>>>>> udp        0      0 0.0.0.0:52307           0.0.0.0:*
>>>>>> 234/python
>>>>>> udp        0      0 0.0.0.0:53900           0.0.0.0:*
>>>>>> 234/python
>>>>>> udp        0      0 0.0.0.0:49823           0.0.0.0:*
>>>>>> 279/DMRGateway
>>>>>>
>>>>>> ambe_audio.py will not run I still get this error.
>>>>>>
>>>>>> File "/opt/dmrlink/ambe_audio/ambe_audio.py", line 19, in <module>
>>>>>>     from dmrlink import IPSC, NETWORK, networks, logger, int_id,
>>>>>> hex_str_3, hex_str_4, get_info, talkgroup_ids, peer_ids, PATH,
>>>>>> get_subscriber_info, reread_subscribers
>>>>>> ImportError: cannot import name get_subscriber_info
>>>>>>
>>>>>> I must be missing a file? by my own screwing up of coarse!
>>>>>>
>>>>>>
>>>>>> On Sun, Feb 28, 2016 at 12:41 PM, Steve Zingman <
>>>>>> <szingman at msgstor.com>szingman at msgstor.com> wrote:
>>>>>>
>>>>>>> netstat-unap
>>>>>>>
>>>>>>> Sent via smoke signal (AT&T 4G LTE)
>>>>>>>
>>>>>>> On Feb 28, 2016, at 12:38 PM, Robert Newberry < <N1XBM at amsat.org>
>>>>>>> N1XBM at amsat.org> wrote:
>>>>>>>
>>>>>>> So I noticed that ambe_audio.py and bridge.py were not comming up at
>>>>>>> bootup. I ran ./rc.local and saw it was permission denied. I corrected
>>>>>>> that. This is what I get.
>>>>>>>
>>>>>>> root at repeater:/etc# Traceback (most recent call last):
>>>>>>>   File "/opt/dmrlink/bridge/bridge.py", line 273, in <module>
>>>>>>>     reactor.listenUDP(NETWORK[ipsc_network]['LOCAL']['PORT'],
>>>>>>> networks[ipsc_network], interface=NETWORK[ipsc_network]['LOCAL']['IP'])
>>>>>>>   File
>>>>>>> "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 374,
>>>>>>> in listenUDP
>>>>>>>     p.startListening()
>>>>>>>   File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py",
>>>>>>> line 175, in startListening
>>>>>>>     self._bindSocket()
>>>>>>>   File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py",
>>>>>>> line 195, in _bindSocket
>>>>>>>     raise error.CannotListenError(self.interface, self.port, le)
>>>>>>> twisted.internet.error.CannotListenError: Couldn't listen on
>>>>>>> 0.0.0.0:52307: [Errno 98] Address already in use.
>>>>>>> Traceback (most recent call last):
>>>>>>>   File "/opt/dmrlink/ambe_audio/ambe_audio.py", line 19, in <module>
>>>>>>>     from dmrlink import IPSC, NETWORK, networks, logger, int_id,
>>>>>>> hex_str_3, hex_str_4, get_info, talkgroup_ids, peer_ids, PATH,
>>>>>>> get_subscriber_info, reread_subscribers
>>>>>>> ImportError: cannot import name get_subscriber_info
>>>>>>>
>>>>>>>
>>>>>>> So I think the first problem where it says it cant listen on
>>>>>>> 0.0.0.0:52307 that has to do with my peer connection to
>>>>>>> brandmiester. I've looked at dmrlink.cfg in both ambe_audio and bridge
>>>>>>> directories. I can not see where that port is duplicated.
>>>>>>>
>>>>>>> The second issuse about can not import subscriber_info, I am not
>>>>>>> sure where to look for that.
>>>>>>>
>>>>>>> On Sun, Feb 28, 2016 at 10:57 AM, Steve Zingman <
>>>>>>> <szingman at msgstor.com>szingman at msgstor.com> wrote:
>>>>>>>
>>>>>>>> I checked the notes. Above the move of the ini is a cd DMRGateway
>>>>>>>>
>>>>>>>> Sent via smoke signal (AT&T 4G LTE)
>>>>>>>>
>>>>>>>> On Feb 28, 2016, at 10:49 AM, Robert Newberry < <N1XBM at amsat.org>
>>>>>>>> N1XBM at amsat.org> wrote:
>>>>>>>>
>>>>>>>> So I'm following the instructions from a previous email.
>>>>>>>>
>>>>>>>> I executed the cp command from /srv
>>>>>>>>
>>>>>>>> cp DMRGateway.armv7 DMRGateway
>>>>>>>>
>>>>>>>> I get no such file or directory. I can however see DMRGateway.armv7
>>>>>>>> in
>>>>>>>> /srv/DMRGateway
>>>>>>>>
>>>>>>>> Am I just in the wrong directory?
>>>>>>>>
>>>>>>>> N1XBM
>>>>>>>> Apparare Scientor
>>>>>>>> Paratus Communicare
>>>>>>>> Allstar Node # 27086, 41540, 41812, 42086, 42658
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Allstar-Digital mailing list
>>>>>>>> <Allstar-Digital at lists.keekles.org>
>>>>>>>> Allstar-Digital at lists.keekles.org
>>>>>>>> <http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital>
>>>>>>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Allstar-Digital mailing list
>>>>>>>> <Allstar-Digital at lists.keekles.org>
>>>>>>>> Allstar-Digital at lists.keekles.org
>>>>>>>> <http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital>
>>>>>>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>>>>>>
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Allstar-Digital mailing list
>>>>>>> <Allstar-Digital at lists.keekles.org>Allstar-Digital at lists.keekles.org
>>>>>>> <http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital>
>>>>>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Allstar-Digital mailing list
>>>>>>> <Allstar-Digital at lists.keekles.org>Allstar-Digital at lists.keekles.org
>>>>>>> <http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital>
>>>>>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>>>>>
>>>>>>>
>>>>>> _______________________________________________
>>>>>> Allstar-Digital mailing list
>>>>>> <Allstar-Digital at lists.keekles.org>Allstar-Digital at lists.keekles.org
>>>>>> <http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital>
>>>>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Allstar-Digital mailing list
>>>>>> <Allstar-Digital at lists.keekles.org>Allstar-Digital at lists.keekles.org
>>>>>> <http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital>
>>>>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> Allstar-Digital mailing list
>>>>> <Allstar-Digital at lists.keekles.org>Allstar-Digital at lists.keekles.org
>>>>> <http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital>
>>>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Allstar-Digital mailing list
>>>>> <Allstar-Digital at lists.keekles.org>Allstar-Digital at lists.keekles.org
>>>>> <http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital>
>>>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>>>
>>>>>
>>>> _______________________________________________
>>>> Allstar-Digital mailing list
>>>> <Allstar-Digital at lists.keekles.org>Allstar-Digital at lists.keekles.org
>>>> <http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital>
>>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>>
>>>>
>>>> _______________________________________________
>>>> Allstar-Digital mailing list
>>>> Allstar-Digital at lists.keekles.org
>>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>>
>>>>
>>> _______________________________________________
>>> Allstar-Digital mailing list
>>> Allstar-Digital at lists.keekles.org
>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>
>>>
>>> _______________________________________________
>>> Allstar-Digital mailing list
>>> Allstar-Digital at lists.keekles.org
>>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>>
>>>
>> _______________________________________________
>> Allstar-Digital mailing list
>> Allstar-Digital at lists.keekles.org
>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>
>>
>> _______________________________________________
>> Allstar-Digital mailing list
>> Allstar-Digital at lists.keekles.org
>> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>>
>>
>
>
> _______________________________________________
> Allstar-Digital mailing listAllstar-Digital at lists.keekles.orghttp://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>
>
> --
> "Anything is possible if you don't know what you are talking about."
> 1st Law of Logic
>
>
> _______________________________________________
> Allstar-Digital mailing list
> Allstar-Digital at lists.keekles.org
> http://lists.keekles.org/cgi-bin/mailman/listinfo/allstar-digital
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.allstarlink.org/pipermail/allstar-digital/attachments/20160228/3a85a845/attachment.html>


More information about the Allstar-Digital mailing list