Side project, "DMR Station" network radio

Post Reply
MM6NRK
Posts: 67
Joined: Wed Apr 22, 2020 1:09 pm

Re: Side project, "DMR Station" network radio

Post by MM6NRK » Fri May 15, 2020 3:46 pm

ea3ihi wrote:
Wed May 13, 2020 12:16 pm
If you look for the dvswitch project in github they give instructions to get the source code and compile it.
Ok i got the file but im useing WinSCP and everytime i trying to send the file or edit the files to put my call sign in i get the below .

Permission denied.
Error code: 3
Error message from server: Permission denied

ea3ihi
Posts: 87
Joined: Fri Jan 10, 2020 9:28 pm
Location: Barcelona, Spain

Re: Side project, "DMR Station" network radio

Post by ea3ihi » Fri May 15, 2020 3:58 pm

It is a permissions problem, if you have created the folders or files as root maybe you can not copy them with the pi user. Try using chown to change the owner of the files, or copy them elsewhere ( /home/pi for instance) and then again using sudo from a terminal move to the place they should go.

I am afraid some basic linux knowledge is needed to get the application running.

TA2EI
Posts: 17
Joined: Mon May 04, 2020 10:39 am
Location: Ankara
Contact:

Re: Side project, "DMR Station" network radio

Post by TA2EI » Sat May 16, 2020 10:50 am

Hi OM,
As I wrote before, I've succedded to run your DMRStation project on a RPi4. But there is an odd situation. I connect to TG 91 and there is a qso between two hams, i.e. XX1YY and ZZ1NN. I completely heard what the ham say when I connect to server. (i.e. XX1YY) But when the other ham (ZZ1NN) start to send I can not heard any sound until disconnect (TG4000) and re-connect to TG91.

This is my DMRSTation.ini :
------------------------------------------
callsign=<TA2EI>
dmrId=286****
repeaterId=*******06
initialTG=91

[server]
#local test server
#remoteHost=192.168.1.60

#Germany server
remoteHost=178.238.234.72
remotePort=62031
password=passw0rd
[ambe]
ambeServerHost=127.0.0.1
ambeServerPort=2460

[audio]

[ui]
#1=480x320 2=320x240
smallUI=0

[misc]
#talk out time
tot=180
totReverse=0

decorated=1

[ptt]
#if hardware ptt is enabled
pttEnabled=0
#name of the gpio bank
pttBank=gpiochip0
#pin number
pttPort=13
pttInvert=1
---------------------------------------
What I do uncorrect?
Regards.

ea3ihi
Posts: 87
Joined: Fri Jan 10, 2020 9:28 pm
Location: Barcelona, Spain

Re: Side project, "DMR Station" network radio

Post by ea3ihi » Sat May 16, 2020 11:24 am

Thanks for the report. I will investigate, but I have seen the same behaviour with a standard DMO. If you go to the self care area of Brandmeister, in your hotspot page corresponding to the repeaterid you have entered, you can check if the selected TG is active or not. Sometimes it isn't even if you can hear a QSO briefly.

Instead doing a 4000 and re entering the TG, just press the ptt during a couple of seconds, after all it is similar to what happens when you select a tg, there is a voice start header, some silence frames and a voice terminator.

I have also experienced weird behaviours when sending a 4000, as for instance receiving the "not linked" audio confirmation but after a while receive audio again from the same TG I was trying to disconnect.

I will test sending a few more silence frames.

David

MM6NRK
Posts: 67
Joined: Wed Apr 22, 2020 1:09 pm

Re: Side project, "DMR Station" network radio

Post by MM6NRK » Sat May 16, 2020 1:41 pm

MM6NRK wrote:
Fri May 15, 2020 3:46 pm
ea3ihi wrote:
Wed May 13, 2020 12:16 pm
If you look for the dvswitch project in github they give instructions to get the source code and compile it.
Ok i got the file but im useing WinSCP and everytime i trying to send the file or edit the files to put my call sign in i get the below .

Permission denied.
Error code: 3
Error message from server: Permission denied
Hi i got it sorted and it starts up but still need to know about repeater id ? Where do i get the repeater id from .

#repeater id = dmrId+two numbers suffix
repeaterId=123456
initialTG=91

The other thing is DMRStation.desktop in ? I cant seem to find that .

If it does it is a good time to add a "desktop" entry in your ./config/autostart folder:

Edit the file DMRStation.desktop in ~/.config/autostart with these contents:

[Desktop Entry]
Version=1.0
Name=PulseAudio Sound System
Exec=/bin/sh -c "cd /opt/DMRStation;./start.sh"
Terminal=false
Type=Application
X-GNOME-Autostart-Phase=Initialization
NotShowIn=KDE;

ea3ihi
Posts: 87
Joined: Fri Jan 10, 2020 9:28 pm
Location: Barcelona, Spain

Re: Side project, "DMR Station" network radio

Post by ea3ihi » Sat May 16, 2020 3:48 pm

repeater id is your DMR id followed by 2 digits suffix. For instance, if your DMR ID is 1234 then you can set repeaterid to whatever between 123400 and 123499, just make sure it is unique and you do not use the same number in any hotspot nor dvswitch instance.

As for the desktop entry you have to create it from scratch, the file does not exist by default.

David

MM6NRK
Posts: 67
Joined: Wed Apr 22, 2020 1:09 pm

Re: Side project, "DMR Station" network radio

Post by MM6NRK » Sun May 17, 2020 5:38 pm

ea3ihi wrote:
Sat May 16, 2020 3:48 pm
repeater id is your DMR id followed by 2 digits suffix. For instance, if your DMR ID is 1234 then you can set repeaterid to whatever between 123400 and 123499, just make sure it is unique and you do not use the same number in any hotspot nor dvswitch instance.

As for the desktop entry you have to create it from scratch, the file does not exist by default.

David
I have done that but does not show up on desktop .
Look at img in link below.


https://ibb.co/BtFhX0Z

ea3ihi
Posts: 87
Joined: Fri Jan 10, 2020 9:28 pm
Location: Barcelona, Spain

Re: Side project, "DMR Station" network radio

Post by ea3ihi » Sun May 17, 2020 5:55 pm

Have you tried moving or creating the .desktop file in /home/pi/.config/autostart? I think when you boot the X session is started for the user pi, and not for the root user.

David

MM6NRK
Posts: 67
Joined: Wed Apr 22, 2020 1:09 pm

Re: Side project, "DMR Station" network radio

Post by MM6NRK » Sun May 17, 2020 6:57 pm

ea3ihi wrote:
Sun May 17, 2020 5:55 pm
Have you tried moving or creating the .desktop file in /home/pi/.config/autostart? I think when you boot the X session is started for the user pi, and not for the root user.

David
Thanks David that sorted it and i just need to sort this file with server ? I live in scotland and what server ip do i need to connect to ?

Is there anything in this file i need to do so i can hear DMR ?

This is my file

#DMRStation configuration file

[user]
callsign=<MM6NRK>
dmrId=235****

#repeater id = dmrId+two numbers suffix
repeaterId=*****77
initialTG=91

[server]
#local test server
#remoteHost=192.168.3.254

#Spain server
remoteHost=84.232.5.113

remotePort=62031
password=passw0rd

[ambe]
ambeServerHost=127.0.0.1
ambeServerPort=2460

[audio]

[ui]
#1=480x320 2=320x240
smallUI=0

#decorate window?
decorated=0

[misc]
#talk out time
tot=180
totReverse=0

[ptt]
#if hardware ptt is enabled
pttEnabled=0
#name of the gpio bank
pttBank=gpiochip0
#pin number
pttPort=13
pttInvert=1

ea3ihi
Posts: 87
Joined: Fri Jan 10, 2020 9:28 pm
Location: Barcelona, Spain

Re: Side project, "DMR Station" network radio

Post by ea3ihi » Sun May 17, 2020 7:50 pm

You can remove the < and > from your callsign.

You can look for the dmr server ip in https://brandmeister.network/?page=masters, probably the one in UK with this ip:

http://87.117.229.173/

Don't forget that your password has to match the one you have in your self care area.

If you use hdmi connectort for your raspi screen, audio will go through hdmi by default, and not through the 3.5mm jack.

More info about audio output:

https://www.raspberrypi.org/documentati ... -config.md

Post Reply