Date   

Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Jason Johnston
 

I've already done all of that, about a year ago upon initial setup, but it seems some things have changed since then.  I will remove all of my current installs and start from scratch.

A couple of questions, though:
How do you start *.py files and how do I run it in the foreground to watch it?


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Steve N4IRS
 

If you are trying to connect a HB based system (MMDVM) to your c-Bridge

You will need the 2 branches:
https://github.com/n0mjs710/DMRlink/tree/IPSC_Bridge
https://github.com/n0mjs710/HBlink/tree/HB_Bridge

You can put all the files in the same directory. Build from the outside in. That way you can see the traffic flow as you add a program.
Configure dmrlink.cfg to login to your c-Bridge as a peer
Configure hblink as a server for your repeater

run dmrlink and verify it is logging into the c-Bridge
run hblink and verify your MMDVM repeater is logging in.
These are just for TESTING your configs.

Configure HB_Bridge.cfg and IPSC_Bridge.cfg to talk to each other. (cross UDP ports)
Start IPSC_Bridge.py You should see it login to your c-Bridge
Start HB_Bridge.py You should see your MMDVM Repeater login to it.
If you have the HB_Bridge.cfg and IPSC_Bridge.cfg correct, you should see traffic flow.

While building, run everything in the foreground so that you can watch the logs in real time.
Make sure you see the traffic before moving on.

Steve N4IRS

On 1/2/2019 2:22 PM, Jason Johnston wrote:
I was able to get it downgraded and I ran the pip install dmr_utils cmd again, and it seems to work - although it says I have everything that I need

I DID do the upgrade manually, since the OS prompted me to do that, so having a line in your instructions, saying to avoid this, would be helpful.

Now that I have that done, what would be the next step to get it to actually connect to the cbridge?  

This Ubuntu box is a test box, we can do anything we want to do, and aren't going to lose anything.  Fire away.


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Jason Johnston
 

I was able to get it downgraded and I ran the pip install dmr_utils cmd again, and it seems to work - although it says I have everything that I need

I DID do the upgrade manually, since the OS prompted me to do that, so having a line in your instructions, saying to avoid this, would be helpful.

Now that I have that done, what would be the next step to get it to actually connect to the cbridge?  

This Ubuntu box is a test box, we can do anything we want to do, and aren't going to lose anything.  Fire away.


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Cort N0MJS <n0mjs@...>
 


I STRONGLY recommend that if you need to update outside of what your distribution package maintainer uses that you use a python virtualenv (virtual environment). And this stuff is getting way outside of what I’m comfortable providing support on really quickly.

On Jan 2, 2019, at 1:11 PM, Steve N4IRS <szingman@...> wrote:

Cort know much more about python then I do but I did find this:
<https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main>
See number 402 and also <https://github.com/pypa/pip/issues/5221>


On 1/2/2019 2:05 PM, Jason Johnston wrote:
Here is a cat cmd from the file referenced in the error"

#!/usr/bin/python
# GENERATED BY DEBIAN
 
import sys
 
# Run the main entry point, similarly to how setuptools does it, but because
# we didn't install the actual entry point from setup.py, don't use the
# pkg_resources API.
from pip import main
if __name__ == '__main__':
    sys.exit(main())
 


Cort Buffington
785-865-7206


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Steve N4IRS
 

On 1/2/2019 2:05 PM, Jason Johnston wrote:
Here is a cat cmd from the file referenced in the error"

#!/usr/bin/python
# GENERATED BY DEBIAN
 
import sys
 
# Run the main entry point, similarly to how setuptools does it, but because
# we didn't install the actual entry point from setup.py, don't use the
# pkg_resources API.
from pip import main
if __name__ == '__main__':
    sys.exit(main())
 


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Jason Johnston
 

Here is a cat cmd from the file referenced in the error"

#!/usr/bin/python
# GENERATED BY DEBIAN
 
import sys
 
# Run the main entry point, similarly to how setuptools does it, but because
# we didn't install the actual entry point from setup.py, don't use the
# pkg_resources API.
from pip import main
if __name__ == '__main__':
    sys.exit(main())
 


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Jason Johnston
 

You're right, sorry.  I tried it with and without the space before the . - same results.

Same results with the latest command:

jape@josephus:/opt$ sudo pip install dmr_utils
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main
 


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Steve N4IRS
 

What you pasted did not have a space. In any case use:
pip install dmr_utils

On 1/2/2019 1:57 PM, Jason Johnston wrote:
Yes I typed the period after the command, that is what I pasted below, and the resulting error.


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Jason Johnston
 

Yes I typed the period after the command, that is what I pasted below, and the resulting error.


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Steve N4IRS
 

true, I keep forgetting that. I'll change the script.

On 1/2/2019 1:56 PM, Cort N0MJS via Groups.Io wrote:
First off, “pip install dmr_utils” it’s on Pypi now.


On Jan 2, 2019, at 12:27 PM, Jason Johnston <kc5hwb@...> wrote:

Hi All

I tried about a year ago to get this DMRlink - HBlink system setup, but never could get it going.  I am trying to revisit this plan.

I have a box running Ubuntu 16.04 and I have the correct files installed (I think).  I own my own cbridge, so I have updated the HBlink.cfg, DMRlink.cfg and HB_Bridge.cfg files to match my current settings.  I tried running an update to dmr_utils, but I get an authentication error when trying to run these commands:
cd /opt
git clone https://github.com/n0mjs710/dmr_utils.git
cd dmr_utils/

It asks for a username and password that I do not have.

My main problem last time I tried this was that the system would connect to the cbridge, but the cbridge rejected the traffic.  I am trying to replicate that error so that I can further trouble-shoot.  But for now, I can't get either to connect to cbridge or mmdvm device.

Should I wipe my directories and start over?  I have backups of most of the .cfg files, so I could do that, but I am sure I need to get my dmr_utils reinstalled or updated first.

Thanks for any assistance.


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Cort N0MJS <n0mjs@...>
 

First off, “pip install dmr_utils” it’s on Pypi now.


On Jan 2, 2019, at 12:27 PM, Jason Johnston <kc5hwb@...> wrote:

Hi All

I tried about a year ago to get this DMRlink - HBlink system setup, but never could get it going.  I am trying to revisit this plan.

I have a box running Ubuntu 16.04 and I have the correct files installed (I think).  I own my own cbridge, so I have updated the HBlink.cfg, DMRlink.cfg and HB_Bridge.cfg files to match my current settings.  I tried running an update to dmr_utils, but I get an authentication error when trying to run these commands:
cd /opt
git clone https://github.com/n0mjs710/dmr_utils.git
cd dmr_utils/

It asks for a username and password that I do not have.

My main problem last time I tried this was that the system would connect to the cbridge, but the cbridge rejected the traffic.  I am trying to replicate that error so that I can further trouble-shoot.  But for now, I can't get either to connect to cbridge or mmdvm device.

Should I wipe my directories and start over?  I have backups of most of the .cfg files, so I could do that, but I am sure I need to get my dmr_utils reinstalled or updated first.

Thanks for any assistance.


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Steve N4IRS
 

The full command is pip install --upgrade .   <---- notice the period

On 1/2/2019 1:54 PM, Jason Johnston wrote:
pip install --upgrade .


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Jason Johnston
 

OK I did a copy/paste of the line, as I did last time, and it works now.  Maybe a network hiccup, who knows.

The complete set of instructions I was trying to run is this:
apt-get install python-dev -y
apt-get install python-pip -y
apt-get install python-twisted -y
pip install bitstring
pip install bitarray

cd /opt
git clone https://github.com/n0mjs710/dmr_utils.git
cd dmr_utils/
pip install --upgrade .

After running any of the pip commands as sudo, I get the following errors:
jape@josephus:/opt/dmr_utils$ sudo pip install --upgrade.
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

1 step closer, I guess.  But the DMRLink server is still not connecting to my cbridge.


Re: Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Steve N4IRS
 

Jason,
I just tried to git clone. I did not get a request for password. I would suggest you retry.

On 1/2/2019 1:27 PM, Jason Johnston wrote:
Hi All

I tried about a year ago to get this DMRlink - HBlink system setup, but never could get it going.  I am trying to revisit this plan.

I have a box running Ubuntu 16.04 and I have the correct files installed (I think).  I own my own cbridge, so I have updated the HBlink.cfg, DMRlink.cfg and HB_Bridge.cfg files to match my current settings.  I tried running an update to dmr_utils, but I get an authentication error when trying to run these commands:
cd /opt
git clone https://github.com/n0mjs710/dmr_utils.git
cd dmr_utils/

It asks for a username and password that I do not have.

My main problem last time I tried this was that the system would connect to the cbridge, but the cbridge rejected the traffic.  I am trying to replicate that error so that I can further trouble-shoot.  But for now, I can't get either to connect to cbridge or mmdvm device.

Should I wipe my directories and start over?  I have backups of most of the .cfg files, so I could do that, but I am sure I need to get my dmr_utils reinstalled or updated first.

Thanks for any assistance.


Setting up DMRLink <-> KBLink #best_practices #dmrlink #hblink

Jason Johnston
 

Hi All

I tried about a year ago to get this DMRlink - HBlink system setup, but never could get it going.  I am trying to revisit this plan.

I have a box running Ubuntu 16.04 and I have the correct files installed (I think).  I own my own cbridge, so I have updated the HBlink.cfg, DMRlink.cfg and HB_Bridge.cfg files to match my current settings.  I tried running an update to dmr_utils, but I get an authentication error when trying to run these commands:
cd /opt
git clone https://github.com/n0mjs710/dmr_utils.git
cd dmr_utils/

It asks for a username and password that I do not have.

My main problem last time I tried this was that the system would connect to the cbridge, but the cbridge rejected the traffic.  I am trying to replicate that error so that I can further trouble-shoot.  But for now, I can't get either to connect to cbridge or mmdvm device.

Should I wipe my directories and start over?  I have backups of most of the .cfg files, so I could do that, but I am sure I need to get my dmr_utils reinstalled or updated first.

Thanks for any assistance.


Re: P25<-->DMR issue "Still"

Steve N4IRS
 

So,
it sounds like P25 is working all the way to Analog_Bridge. It also sounds like you have a problem with Analog_Bridge for DMR.
Are you using the emulator?
Is the emulator running?

Steve

On 1/2/19 2:40 AM, Ian Tulley wrote:
Hi Steve, OK here is what I have been able to achieve, P25Gateway runs fine, I can then start MMDVM_Bridge and it connects to the BM Master successfully, I can TX on both the P25 radio and the DMR radio on different repeaters and see my calls come up on the screen output. I then start up Analog_Bridge_P25.ini and do the same test and again can see myself coming up on the screen output but no audio between them. Now when I startup Analog_Bridge_DMR.ini and do the same test I can see myself come up on the screen output then I get the following error, only on that Stanza, "Emulator Timed out on Decode" or "Emulator Timed out on Encode" depending on the direction of the data and still no audio in either direction, but I can get the DMR repeater to TX "sometimes" when PTT from the P25 radio but no audio.
I'm not sure where to look for this one, please remember this is on a server in the cloud so there are no USB Dongles connected, I'm only using the software decoder.

Regards
Ian (VK2HK)


Re: P25<-->DMR issue "Still"

Peter M0NWI
 

Ian,

Did you miss installing on your new box, or have you got the wrong ports setup for the MD380emu?

73,
Peter


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of Ian Tulley <ian@...>
Sent: 02 January 2019 07:40
To: main@DVSwitch.groups.io
Subject: Re: [DVSwitch] P25<-->DMR issue "Still"
 
Hi Steve, OK here is what I have been able to achieve, P25Gateway runs fine, I can then start MMDVM_Bridge and it connects to the BM Master successfully, I can TX on both the P25 radio and the DMR radio on different repeaters and see my calls come up on the screen output. I then start up Analog_Bridge_P25.ini and do the same test and again can see myself coming up on the screen output but no audio between them. Now when I startup Analog_Bridge_DMR.ini and do the same test I can see myself come up on the screen output then I get the following error, only on that Stanza, "Emulator Timed out on Decode" or "Emulator Timed out on Encode" depending on the direction of the data and still no audio in either direction, but I can get the DMR repeater to TX "sometimes" when PTT from the P25 radio but no audio.
I'm not sure where to look for this one, please remember this is on a server in the cloud so there are no USB Dongles connected, I'm only using the software decoder.

Regards
Ian (VK2HK)


Re: P25<-->DMR issue "Still"

Ian Tulley
 

Hi Steve, OK here is what I have been able to achieve, P25Gateway runs fine, I can then start MMDVM_Bridge and it connects to the BM Master successfully, I can TX on both the P25 radio and the DMR radio on different repeaters and see my calls come up on the screen output. I then start up Analog_Bridge_P25.ini and do the same test and again can see myself coming up on the screen output but no audio between them. Now when I startup Analog_Bridge_DMR.ini and do the same test I can see myself come up on the screen output then I get the following error, only on that Stanza, "Emulator Timed out on Decode" or "Emulator Timed out on Encode" depending on the direction of the data and still no audio in either direction, but I can get the DMR repeater to TX "sometimes" when PTT from the P25 radio but no audio.
I'm not sure where to look for this one, please remember this is on a server in the cloud so there are no USB Dongles connected, I'm only using the software decoder.

Regards
Ian (VK2HK)


Re: P25<-->DMR issue

Ian Tulley
 

Thanks Steve.

------------------
Regards
Ian (VK2HK)




On 2 Jan 2019, at 12:38 pm, Steve N4IRS <szingman@...> wrote:

You are right, 4 config files. I just counted the programs in the diagram. MMDVM_Bridge is a single instance.

On 1/1/19 8:37 PM, Ian Tulley wrote:
Hi again Steve, just quickly looking back on your reply, you say 5 instances of the shell, OK,
P25Gateway
MMDVM_Bridge
Analog_Bridge_P25
Analog_Bridge_DMR

What is the other one, should there be another MMDVM_Bridge.ini that I should be monitoring, I thought I only required one of those ??? What am I missing ??

------------------
Regards
Ian (VK2HK)




On 2 Jan 2019, at 12:31 pm, Ian Tulley <ian@...> wrote:

Thanks Steve, I will look again and follow those instructions, I feel I have just done something silly that I have not been able to see as yet. I have to go out so a break will be good and I may pick up my mistake when I try again later.

Hope this year is good for you.

------------------
Regards
Ian (VK2HK)




On 2 Jan 2019, at 12:18 pm, Steve N4IRS <szingman@...> wrote:

Ian,
You are correct in your diagram. You are talking about 5 config files. Rather then search through 5 files, start at one end and work to the other. Run each program in the foreground one at a time. If the output to the console looks right, start up a new shell and work on the next program. Don't move on to the next program until you have it working up to that point. Yes, you will end up with 5 shells open. You will be able to watch the traffic from one end to the other. Once you have that working, follow the traffic in the other direction.
Pretty much each program at startup reports the important configuration data.

Hope this helps.
Steve N4IRS  

On 1/1/19 8:10 PM, Ian Tulley wrote:
Hi and a Happy New Year to all.
OK, I have done something very silly, I am trying to build a new server that will be the P25<-->DMR Bridge. I had one working but needed to move it to a new server and firstly did not check to see if it was actually running or not, so I don't know if my original was working. I just want to see if I have the bridging information correct.

P25Gateway<-->Mmdvm_Bridge<-->Analog_Bridge_P25<-->Analog_Bridge_DMR<-->MMDVM_Bridge

The reason I am asking is that I shutdown the old server before making sure the new one was active and now can't seem to get the new server to work.
I have the P25Gateway working and have one instance of MMDVM_Bridge.ini and both Analog_Bridge_p25.ini and Analog_Bridge_DMR.ini

Before I do my head in any further I want to check if that looks correct, if so and I still can't get it to work, I will then upload my stanzas to see if someone else can see my mistake.

Regards
Ian (VK2HK)






Re: P25<-->DMR issue

Steve N4IRS
 

You are right, 4 config files. I just counted the programs in the diagram. MMDVM_Bridge is a single instance.

On 1/1/19 8:37 PM, Ian Tulley wrote:
Hi again Steve, just quickly looking back on your reply, you say 5 instances of the shell, OK,
P25Gateway
MMDVM_Bridge
Analog_Bridge_P25
Analog_Bridge_DMR

What is the other one, should there be another MMDVM_Bridge.ini that I should be monitoring, I thought I only required one of those ??? What am I missing ??

------------------
Regards
Ian (VK2HK)




On 2 Jan 2019, at 12:31 pm, Ian Tulley <ian@...> wrote:

Thanks Steve, I will look again and follow those instructions, I feel I have just done something silly that I have not been able to see as yet. I have to go out so a break will be good and I may pick up my mistake when I try again later.

Hope this year is good for you.

------------------
Regards
Ian (VK2HK)




On 2 Jan 2019, at 12:18 pm, Steve N4IRS <szingman@...> wrote:

Ian,
You are correct in your diagram. You are talking about 5 config files. Rather then search through 5 files, start at one end and work to the other. Run each program in the foreground one at a time. If the output to the console looks right, start up a new shell and work on the next program. Don't move on to the next program until you have it working up to that point. Yes, you will end up with 5 shells open. You will be able to watch the traffic from one end to the other. Once you have that working, follow the traffic in the other direction.
Pretty much each program at startup reports the important configuration data.

Hope this helps.
Steve N4IRS  

On 1/1/19 8:10 PM, Ian Tulley wrote:
Hi and a Happy New Year to all.
OK, I have done something very silly, I am trying to build a new server that will be the P25<-->DMR Bridge. I had one working but needed to move it to a new server and firstly did not check to see if it was actually running or not, so I don't know if my original was working. I just want to see if I have the bridging information correct.

P25Gateway<-->Mmdvm_Bridge<-->Analog_Bridge_P25<-->Analog_Bridge_DMR<-->MMDVM_Bridge

The reason I am asking is that I shutdown the old server before making sure the new one was active and now can't seem to get the new server to work.
I have the P25Gateway working and have one instance of MMDVM_Bridge.ini and both Analog_Bridge_p25.ini and Analog_Bridge_DMR.ini

Before I do my head in any further I want to check if that looks correct, if so and I still can't get it to work, I will then upload my stanzas to see if someone else can see my mistake.

Regards
Ian (VK2HK)




7241 - 7260 of 9882