Blog with P25<->DMR Info


mike@...
 

Greetings all! 
I recently put together a P25 to DMR cross-mode link. I am very appreciative of Steve and many others on the board for their support as I leaned my way through it. 

I decided to spin up a blog and post some instructions for anyone else that may be interested in doing this, or building a P25Reflector. I *think* I captured everything... and my hope is that the information posted is helpful to others. 


Cheers, 
Mike - N6MIK


Steve N4IRS
 

If you like, I'll set you up to add the the wiki.

On 1/27/19 1:07 PM, mike@... wrote:
Greetings all! 
I recently put together a P25 to DMR cross-mode link. I am very appreciative of Steve and many others on the board for their support as I leaned my way through it. 

I decided to spin up a blog and post some instructions for anyone else that may be interested in doing this, or building a P25Reflector. I *think* I captured everything... and my hope is that the information posted is helpful to others. 


Cheers, 
Mike - N6MIK


Doug - W4DBG
 

Mike,

Nice job. One question, did you use DVSwitch.ini and if so, what are those settings. I may have missed them in the instructions but just checking.

Thanks

Doug
W4DBG



On Sun, Jan 27, 2019 at 12:10 PM Steve N4IRS <szingman@...> wrote:
If you like, I'll set you up to add the the wiki.

On 1/27/19 1:07 PM, mike@... wrote:
Greetings all! 
I recently put together a P25 to DMR cross-mode link. I am very appreciative of Steve and many others on the board for their support as I leaned my way through it. 

I decided to spin up a blog and post some instructions for anyone else that may be interested in doing this, or building a P25Reflector. I *think* I captured everything... and my hope is that the information posted is helpful to others. 


Cheers, 
Mike - N6MIK



--
Doug Gooden
troytrojan@...


mike@...
 

I didn’t change anything in that file.

-Mike

On Sun, Jan 27, 2019 at 5:48 PM Doug - W4DBG <douggooden@...> wrote:
Mike,

Nice job. One question, did you use DVSwitch.ini and if so, what are those settings. I may have missed them in the instructions but just checking.

Thanks

Doug
W4DBG



On Sun, Jan 27, 2019 at 12:10 PM Steve N4IRS <szingman@...> wrote:
If you like, I'll set you up to add the the wiki.

On 1/27/19 1:07 PM, mike@... wrote:
Greetings all! 
I recently put together a P25 to DMR cross-mode link. I am very appreciative of Steve and many others on the board for their support as I leaned my way through it. 

I decided to spin up a blog and post some instructions for anyone else that may be interested in doing this, or building a P25Reflector. I *think* I captured everything... and my hope is that the information posted is helpful to others. 


Cheers, 
Mike - N6MIK



--
Doug Gooden
troytrojan@...


Doug - W4DBG
 

Thanks!

On Sun, Jan 27, 2019 at 7:50 PM <mike@...> wrote:
I didn’t change anything in that file.

-Mike
On Sun, Jan 27, 2019 at 5:48 PM Doug - W4DBG <douggooden@...> wrote:
Mike,

Nice job. One question, did you use DVSwitch.ini and if so, what are those settings. I may have missed them in the instructions but just checking.

Thanks

Doug
W4DBG



On Sun, Jan 27, 2019 at 12:10 PM Steve N4IRS <szingman@...> wrote:
If you like, I'll set you up to add the the wiki.

On 1/27/19 1:07 PM, mike@... wrote:
Greetings all! 
I recently put together a P25 to DMR cross-mode link. I am very appreciative of Steve and many others on the board for their support as I leaned my way through it. 

I decided to spin up a blog and post some instructions for anyone else that may be interested in doing this, or building a P25Reflector. I *think* I captured everything... and my hope is that the information posted is helpful to others. 


Cheers, 
Mike - N6MIK



--
Doug Gooden
troytrojan@...

--
Doug Gooden
troytrojan@...


BB Odenthal
 

This is excellent, Mike.  Thanks! 

-bb

On Jan 27, 2019, at 10:07, mike@... wrote:

Greetings all! 
I recently put together a P25 to DMR cross-mode link. I am very appreciative of Steve and many others on the board for their support as I leaned my way through it. 

I decided to spin up a blog and post some instructions for anyone else that may be interested in doing this, or building a P25Reflector. I *think* I captured everything... and my hope is that the information posted is helpful to others. 


Cheers, 
Mike - N6MIK


Kevin N9OIG
 

Are we using md380 emulator for this I don't see this mentioned here?

Although Im stuck getting the P25Gateway to talk to the P25Gateway
The Blog sez to do this

P25HOSTS

 sudo nano /etc/P25Hosts.ini

Determine what P25 Talkgroup you will use, and supply that in the P25Hosts.txt file in this format: TG(tab)127.0.0.1(tab)41000

but his example pic shows the P25Hosts.txt not the ini

P25Hosts


mike@...
 

No emulator. 

I'm not sure I understand your second question...
Here's the gateway config - P25Hosts also needs to be touched so that the gateway knows where to find the reflector. Does that help? 

P25GATEWAY

 sudo nano /etc/P25Gateway.ini

[General]
Callsign={Your callsign here}
RptAddress=127.0.0.1
RptPort=32010
LocalPort=42020
Announcements=1
Daemon=1

[Id Lookup]
Name=DMRIds.dat
Time=24

[Log]
FilePath=/var/log/P25Gateway/
FileRoot=P25Gateway

[Network]
Port=42010
HostsFile1=/opt/P25Hosts.txt <--CHANGE to /etc/P25Hosts.txt
HostsFile2=./private/P25Hosts.txt
ReloadTime=60
ParrotAddress=127.0.0.1
ParrotPort=42011
Startup={Your P25 Reflector Talkgroup here}
InactivityTimeout=10
Debug=0


On Mon, Jan 28, 2019 at 9:58 PM Kevin N9OIG <n9oig@...> wrote:
Are we using md380 emulator for this I don't see this mentioned here?

Although Im stuck getting the P25Gateway to talk to the P25Gateway
The Blog sez to do this

P25HOSTS

 sudo nano /etc/P25Hosts.ini

Determine what P25 Talkgroup you will use, and supply that in the P25Hosts.txt file in this format: TG(tab)127.0.0.1(tab)41000

but his example pic shows the P25Hosts.txt not the ini

P25Hosts


mike@...
 

Oops... just saw the typo there... the correct file is P25Hosts.txt. Fixing the blog now!


On Mon, Jan 28, 2019 at 10:07 PM <mike@...> wrote:
No emulator. 

I'm not sure I understand your second question...
Here's the gateway config - P25Hosts also needs to be touched so that the gateway knows where to find the reflector. Does that help? 

P25GATEWAY

 sudo nano /etc/P25Gateway.ini

[General]
Callsign={Your callsign here}
RptAddress=127.0.0.1
RptPort=32010
LocalPort=42020
Announcements=1
Daemon=1

[Id Lookup]
Name=DMRIds.dat
Time=24

[Log]
FilePath=/var/log/P25Gateway/
FileRoot=P25Gateway

[Network]
Port=42010
HostsFile1=/opt/P25Hosts.txt <--CHANGE to /etc/P25Hosts.txt
HostsFile2=./private/P25Hosts.txt
ReloadTime=60
ParrotAddress=127.0.0.1
ParrotPort=42011
Startup={Your P25 Reflector Talkgroup here}
InactivityTimeout=10
Debug=0


On Mon, Jan 28, 2019 at 9:58 PM Kevin N9OIG <n9oig@...> wrote:
Are we using md380 emulator for this I don't see this mentioned here?

Although Im stuck getting the P25Gateway to talk to the P25Gateway
The Blog sez to do this

P25HOSTS

 sudo nano /etc/P25Hosts.ini

Determine what P25 Talkgroup you will use, and supply that in the P25Hosts.txt file in this format: TG(tab)127.0.0.1(tab)41000

but his example pic shows the P25Hosts.txt not the ini

P25Hosts


Kevin N9OIG
 

With the daemon set to 1 as shown in the example the error sez it cant find the mmdvm user. We then set it to 0 mentioned in a few places elsewhere it couldn't open the log files we created the directory for the log files that error goes away and, seems to run but never connects the the reflector. 
What is Hostsfile2 for?


Kevin N9OIG
 

In the example Analog_Bridge_p25.ini and DMR
shouldn't the dmr ports talk to each other? Tx to rx of the other and rx to tx? 


 

the startup script links appear to be broken?
Also, what is NAC ? i'm not familiar with P25 that much but I've been working on a bridge for someone else.


On Tue, Jan 29, 2019 at 9:35 AM Kevin N9OIG <n9oig@...> wrote:
In the example Analog_Bridge_p25.ini and DMR
shouldn't the dmr ports talk to each other? Tx to rx of the other and rx to tx? 


mike@...
 

Hi Kevin, 
Create the log directories as the first step in the Configs... 

sudo mkdir /var/log/P25Gateway
sudo mkdir /var/log/P25Reflector
sudo mkdir /var/log/mmdvm
 

I've updated the guide to include this - thanks for catching it. 

I'm not sure what's going on with the Daemon settings in the background. 2 of my 3 reflectors have them at 0 - but the one I used for the example is set to 1. I'll update the guide on this shortly, but expect that creating the log dirs and setting Daemon=0 will work for you. 



On Tue, Jan 29, 2019 at 7:29 AM Kevin N9OIG <n9oig@...> wrote:
With the daemon set to 1 as shown in the example the error sez it cant find the mmdvm user. We then set it to 0 mentioned in a few places elsewhere it couldn't open the log files we created the directory for the log files that error goes away and, seems to run but never connects the the reflector. 
What is Hostsfile2 for?


mike@...
 

No - that's what I thought initially also, but they do not. Steve pointed me in the right direction: 

On Tue, Jan 29, 2019 at 7:35 AM Kevin N9OIG <n9oig@...> wrote:
In the example Analog_Bridge_p25.ini and DMR
shouldn't the dmr ports talk to each other? Tx to rx of the other and rx to tx? 


Kevin N9OIG
 

When starting the Analog_Bridge_DMR I get this

root@raspberrypi:/opt/Analog_Bridge# ./Analog_Bridge_DMR /etc/Analog_Bridge_DMR.                                             ini
I: 2019-01-29 17:11:35.759 Analog Bridge Version 1.1 Wed  9 May 05:56:17 EDT 201                                             8
I: 2019-01-29 17:11:35.759 Copyright (C) 2018 DVSwitch, INAD.
I: 2019-01-29 17:11:35.759 Created by Mike N4IRR and Steve N4IRS
I: 2019-01-29 17:11:35.759 Analog Bridge comes with ABSOLUTELY NO WARRANTY
I: 2019-01-29 17:11:35.759
I: 2019-01-29 17:11:35.759 This software is for use on amateur radio networks on                                             ly,
I: 2019-01-29 17:11:35.759 it is to be used for educational purposes only. Its u                                             se on
I: 2019-01-29 17:11:35.759 commercial networks is strictly prohibited.
I: 2019-01-29 17:11:35.759
I: 2019-01-29 17:11:35.759 Analog Bridge is starting
M: 2019-01-29 17:11:35.760 Setting [GENERAL] logLevel -> 2
M: 2019-01-29 17:11:35.760 Setting [GENERAL] exportMetadata -> true
M: 2019-01-29 17:11:35.760 Setting [GENERAL] subscriberFile -> /var/lib/dvswitch                                             /subscriber_ids.csv
M: 2019-01-29 17:11:35.760 Setting [GENERAL] decoderFallBack -> false
M: 2019-01-29 17:11:35.760 Setting [GENERAL] useEmulator -> false
M: 2019-01-29 17:11:35.760 Setting [GENERAL] emulatorAddress -> 127.0.0.1:2470
M: 2019-01-29 17:11:35.760 Setting [GENERAL] outputAudioDevice -> /dev/null
M: 2019-01-29 17:11:35.760 Setting [GENERAL] inputAudioDevice -> /dev/null
M: 2019-01-29 17:11:35.760 Setting [GENERAL] useMicrophone -> false
M: 2019-01-29 17:11:35.760 Setting [GENERAL] useVox -> false
M: 2019-01-29 17:11:35.760 Setting [GENERAL] voxDecay -> 2
M: 2019-01-29 17:11:35.760 Setting [GENERAL] voxTrigger -> 200
M: 2019-01-29 17:11:35.760 Setting [AMBE_AUDIO] server -> 127.0.0.1
M: 2019-01-29 17:11:35.760 Setting [AMBE_AUDIO] fromDMRPort -> 31100
M: 2019-01-29 17:11:35.761 Setting [AMBE_AUDIO] toDMRPort -> 31103
M: 2019-01-29 17:11:35.761 Setting [AMBE_AUDIO] ambeMode -> DMR
M: 2019-01-29 17:11:35.761 Setting [AMBE_AUDIO] minTxTimeMS -> 2000
M: 2019-01-29 17:11:35.761 Setting [AMBE_AUDIO] gatewayDmrId -> 315502210
M: 2019-01-29 17:11:35.761 Setting [AMBE_AUDIO] repeaterID -> 315503
M: 2019-01-29 17:11:35.761 Setting [AMBE_AUDIO] txTg -> 31555
M: 2019-01-29 17:11:35.761 Setting [AMBE_AUDIO] txTs -> 2
M: 2019-01-29 17:11:35.761 Setting [AMBE_AUDIO] colorCode -> 1
M: 2019-01-29 17:11:35.761 Setting [USRP] server -> 127.0.0.1
M: 2019-01-29 17:11:35.761 Setting [USRP] toASLPort -> 32001
M: 2019-01-29 17:11:35.761 Setting [USRP] fromASLPort -> 34001
M: 2019-01-29 17:11:35.761 Setting [USRP] aslAudio -> AUDIO_UNITY
M: 2019-01-29 17:11:35.761 Setting [USRP] agcGain -> -20
M: 2019-01-29 17:11:35.761 Setting [USRP] dmrAudio -> AUDIO_UNITY
M: 2019-01-29 17:11:35.761 Setting [USRP] dmrGain -> 0.35
M: 2019-01-29 17:11:35.761 Setting [DV3000] server -> 127.0.0.1
M: 2019-01-29 17:11:35.761 Setting [DV3000] port -> 2460
W: 2019-01-29 17:11:35.762 ioctl reset error
W: 2019-01-29 17:11:35.762 ioctl speed error
W: 2019-01-29 17:11:35.762 ioctl stereo error
W: 2019-01-29 17:11:35.762 ioctl setfmt error
M: 2019-01-29 17:11:35.762 Audio In/Out Device: /dev/null
I: 2019-01-29 17:11:35.762 Open UDP listener on 127.0.0.1:31100
I: 2019-01-29 17:11:35.762 Open USRP on 127.0.0.1:32001
M: 2019-01-29 17:11:35.762 Connecting to DV3000 hardware......
W: 2019-01-29 17:11:36.770 DV3000 not found at 127.0.0.1:2460
Project 25 IMBE Encoder/Decoder Fixed-Point implementation
Developed by Pavel Yazev E-mail: pyazev@...
Version 1.0 (c) Copyright 2009
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the file ``LICENSE'' for details.
I: 2019-01-29 17:11:37.250 Subscriber IDs loaded: 120545
I: 2019-01-29 17:11:37.250 Default extended metadata <315502210>
F: 2019-01-29 17:11:37.250 DV3000 not found!, aborting.
root@raspberrypi:/opt/Analog_Bridge#
 


Steve N4IRS
 

Make these both true.

On 1/29/2019 12:19 PM, Kevin N9OIG wrote:
M: 2019-01-29 17:11:35.760 Setting [GENERAL] decoderFallBack -> false
M: 2019-01-29 17:11:35.760 Setting [GENERAL] useEmulator -> false


 

I have been following the blog working on a Bridge for a fellow in NY and I don't think somethings is linked up correctly but nothing is jumping out at me in the logs.

Logs are located here for review: https://we.tl/t-LYRjUm1WpC 

let me know what i'm missing.

Also, what is NAC? 


On Tue, Jan 29, 2019 at 11:30 AM Steve N4IRS <szingman@...> wrote:
Make these both true.

On 1/29/2019 12:19 PM, Kevin N9OIG wrote:
> M: 2019-01-29 17:11:35.760 Setting [GENERAL] decoderFallBack -> false
> M: 2019-01-29 17:11:35.760 Setting [GENERAL] useEmulator -> false





mike@...
 

According the logs, you only have one instance of Analog_Bridge running. You need 2. One for DMR and one for P25 (or perhaps didn't include that log)

I also see that you're loading 17 P25 Reflectors. While probably not critical, your P25Hosts.txt only needs the localhost reflector information, as it isn't meant to connect to others... 

Network Access Control (NAC) is analogous to CTCSS for P25. 


On Wed, Jan 30, 2019 at 1:12 PM Russell, KV4S <russelljthomas@...> wrote:
I have been following the blog working on a Bridge for a fellow in NY and I don't think somethings is linked up correctly but nothing is jumping out at me in the logs.

Logs are located here for review: https://we.tl/t-LYRjUm1WpC 

let me know what i'm missing.

Also, what is NAC? 

On Tue, Jan 29, 2019 at 11:30 AM Steve N4IRS <szingman@...> wrote:
Make these both true.

On 1/29/2019 12:19 PM, Kevin N9OIG wrote:
> M: 2019-01-29 17:11:35.760 Setting [GENERAL] decoderFallBack -> false
> M: 2019-01-29 17:11:35.760 Setting [GENERAL] useEmulator -> false





 

great catch i had got interrupted and did not finish setting up the second analog bridge's service file to make it start.
I started it in the foreground and it's getting this?:  2019-01-30 22:16:18.817 Repeater ID can not be the same as subscriber ID

where can i find the P25Hosts.txt and what should it be set to?


On Wed, Jan 30, 2019 at 3:49 PM <mike@...> wrote:
According the logs, you only have one instance of Analog_Bridge running. You need 2. One for DMR and one for P25 (or perhaps didn't include that log)

I also see that you're loading 17 P25 Reflectors. While probably not critical, your P25Hosts.txt only needs the localhost reflector information, as it isn't meant to connect to others... 

Network Access Control (NAC) is analogous to CTCSS for P25. 

On Wed, Jan 30, 2019 at 1:12 PM Russell, KV4S <russelljthomas@...> wrote:
I have been following the blog working on a Bridge for a fellow in NY and I don't think somethings is linked up correctly but nothing is jumping out at me in the logs.

Logs are located here for review: https://we.tl/t-LYRjUm1WpC 

let me know what i'm missing.

Also, what is NAC? 

On Tue, Jan 29, 2019 at 11:30 AM Steve N4IRS <szingman@...> wrote:
Make these both true.

On 1/29/2019 12:19 PM, Kevin N9OIG wrote:
> M: 2019-01-29 17:11:35.760 Setting [GENERAL] decoderFallBack -> false
> M: 2019-01-29 17:11:35.760 Setting [GENERAL] useEmulator -> false





 

never mind, i think I fixed that. 

let me keep testing and see if i get further.

On Wed, Jan 30, 2019 at 4:21 PM Russell, KV4S via Groups.Io <russelljthomas=gmail.com@groups.io> wrote:
great catch i had got interrupted and did not finish setting up the second analog bridge's service file to make it start.
I started it in the foreground and it's getting this?:  2019-01-30 22:16:18.817 Repeater ID can not be the same as subscriber ID

where can i find the P25Hosts.txt and what should it be set to?


On Wed, Jan 30, 2019 at 3:49 PM <mike@...> wrote:
According the logs, you only have one instance of Analog_Bridge running. You need 2. One for DMR and one for P25 (or perhaps didn't include that log)

I also see that you're loading 17 P25 Reflectors. While probably not critical, your P25Hosts.txt only needs the localhost reflector information, as it isn't meant to connect to others... 

Network Access Control (NAC) is analogous to CTCSS for P25. 

On Wed, Jan 30, 2019 at 1:12 PM Russell, KV4S <russelljthomas@...> wrote:
I have been following the blog working on a Bridge for a fellow in NY and I don't think somethings is linked up correctly but nothing is jumping out at me in the logs.

Logs are located here for review: https://we.tl/t-LYRjUm1WpC 

let me know what i'm missing.

Also, what is NAC? 

On Tue, Jan 29, 2019 at 11:30 AM Steve N4IRS <szingman@...> wrote:
Make these both true.

On 1/29/2019 12:19 PM, Kevin N9OIG wrote:
> M: 2019-01-29 17:11:35.760 Setting [GENERAL] decoderFallBack -> false
> M: 2019-01-29 17:11:35.760 Setting [GENERAL] useEmulator -> false