DMR CPS on Linux?

n0xvz

Member (barely)
Premium Subscriber
Joined
Jan 5, 2013
Messages
392
Reaction score
277
Location
San Angelo, TX
Has anyone had any luck getting a DMR CPS to work on Linux? If so, which one did you use? I've tried two without any luck. I know I'm missing a step and need to take more time to sort it out, but I'm still new to Linux, and I think that's part of the issue. Thanks in advance!
 

nd5y

Member
Joined
Dec 19, 2002
Messages
12,336
Reaction score
4,578
Location
Wichita Falls, TX
Which Linux distro are you using?
Do you know what WINE is and how to install windows software on Linux?
CPS for what radio model?
What didn't work?
Did the software not install?
Did the software install but not run?
Did you get error messages?

Years ago I installed AnyTone DMR CPS. I don't remember which model it was for but it installed and ran on WINE. I don't have any DMR radios or programming cables for them so I didn't know if it could actually talk to the radio.

Also N0GSG Contact Manager worked on WINE.
 
Last edited:

n0xvz

Member (barely)
Premium Subscriber
Joined
Jan 5, 2013
Messages
392
Reaction score
277
Location
San Angelo, TX
I’m using Linux Mint and I’m very much a novice when it comes to Linux, that’s why I’m doing things as a learning opportunity while I’m furloughed. Yes, I’m familiar with WINE. I do have a Windows PC that I use as my primary for programming, but I want to do this purely on Linux, if possible.

I’m trying to program either a TYT MD-380 or MD-uv380.

I’ve tried QDMR and one other program (but don’t recall which at the moment). QDMR installed fine and will run, but it keeps crashing when I try to find the radio or download the codeplug. That made me think I’m missing a driver, but I’m not showing any missing. There are no error messages.

I’ve learned that the world of radio programming is much easier on a Windows PC, which is not surprising.
 

nd5y

Member
Joined
Dec 19, 2002
Messages
12,336
Reaction score
4,578
Location
Wichita Falls, TX
If you installed it from the repo (Linux Mint uses the Ubuntu repos for almost all software that they didn't write themselves) using LM's software manager (it will show "System Package") then it should automatically install the necessary dependencies (libraries and drivers).

Whoever wrote QDMR was probably smart enough to make any required hardware like USB cables work on each supported radio model but you never know.

I am using LM 22.2 and just installed QDMR. It runs but since I don't have any DMR radios or code plugs it says it can't find anything but doesn't crash. That's about all I can do without radios or code plugs.

There are some things you can check.

If the radio cables are really USB-serial ports then Linux usually requires the user to be a member of the dialout group for permission to access serial ports.
If you are using the Cinnamon desktop then click the Menu and go to Administration > Users and Groups (Cinnamon-settings-users)
Click on Goups on the bottom right of the window.
Find "dialout" and make sure it is checked. I don't remeber if LM enables it by default.
When you change group permissions you need to log out and back in for it to take effect.

You can run qdmr from the terminal and see if it makes any messages or errors, especially when it crashes.

You can look in the /var/log folder for anything with qdmr in the filename for any logs or crash reports.

You can check Menu > Administration > System Reports for crash logs but some software crashes won't show up there.
 

n0xvz

Member (barely)
Premium Subscriber
Joined
Jan 5, 2013
Messages
392
Reaction score
277
Location
San Angelo, TX
All good suggestions! I had better luck running it from the CLI, but it still crashed. It looks like I might be having a USB error:

"ERROR in lib/dfu_libusb.cc@105: Cannot open device USB device in DFU mode: bus 2, device 17: Access denied (insufficient permissions)."

I did look at the dialout. There was no way I could check it, but it was listed. I didn't see anything listed in /var/log for QDMR. There were a bunch of crashes in the System Reports.
 

nd5y

Member
Joined
Dec 19, 2002
Messages
12,336
Reaction score
4,578
Location
Wichita Falls, TX
Access denied (insufficient permissions)."
That looks to me like you don't have permission because you aren't a member of the dialout group.

Open a terminal and type:
groups

That lists the groups that the currently logged in user is a member of.
If dialout is not listed then you can add yourself to the dialout group by:
sudo usermod -aG dialout $USER

$USER will add the username of the current user who ran the command or you can specify the username.
 

n0xvz

Member (barely)
Premium Subscriber
Joined
Jan 5, 2013
Messages
392
Reaction score
277
Location
San Angelo, TX
Thanks for your help! Dialout wasn't listed, and the command didn't change anything for some reason. However, in frustration, I removed QMDR and reinstalled it from the CLI instead of the software manager. It seems to work with both radios now.
 

nd5y

Member
Joined
Dec 19, 2002
Messages
12,336
Reaction score
4,578
Location
Wichita Falls, TX
You probably have to log out and back in for the group change to take effect.

I have seen that before where something didn't work, or originally worked and then broke, and purging and reinstalling it made it work again.
 

n0xvz

Member (barely)
Premium Subscriber
Joined
Jan 5, 2013
Messages
392
Reaction score
277
Location
San Angelo, TX
Yeah, I don't know why I didn't reinstall after the first dozen times of trying. Geesh...
 
Top