This procedure has been tested under Ubuntu Linux 16.04 LTS only, but should work on other Linux distros and MacOS as well. If you have the opportunity to test, please send a message to pu2mkj@gmail.com .
Boot your system with the DV4mini USB stick pluged in, then follow the “SETUP” steps below. After making it work for the first time, check “USING AFTER SETUP” section.
IMPORTANT: your system must be set to timezone UTC – on Debian/Ubuntu based distros, use “sudo dpkg-reconfigure tzdata”, on the 1st screen “none of the above”, and next “UTC”
IMPORTANT: your system must be set to timezone UTC – on Debian/Ubuntu based distros, use “sudo dpkg-reconfigure tzdata”, on the 1st screen “none of the above”, and next “UTC”
You can get your DV4mini USB stick & more information about the device at:
SETUP
1) Install latest winehq “stable” release (by Aug 2017 version 2.0.2) following the procedures:
Ubuntu: https://wiki.winehq.org/Ubuntu
Debian: https://wiki.winehq.org/Debian
MacOS: https://wiki.winehq.org/MacOS
Debian: https://wiki.winehq.org/Debian
MacOS: https://wiki.winehq.org/MacOS
2) Set wine version to “Windows 10”:
$ winecfg
First time you run winecfg, it's likely to ask you to install some additional modules, normally "mono" and "gecko" - just choose install/yes as much as it asks. After winecfg goes up:
tab “Applications” > “Windows version” > Windows 10 > OK
3) Create symlink on ~/.wine/dosdevices:
You’ll need to find out what device is being created when you insert the DV4mini dongle (you could use “tail -f /var/log/syslog” and watch the logs as you insert the USB device); in my case, it was /dev/ttyACM0
You’ll need to find out what device is being created when you insert the DV4mini dongle (you could use “tail -f /var/log/syslog” and watch the logs as you insert the USB device); in my case, it was /dev/ttyACM0
$ ln -s /dev/ttyACM0 ~/.wine/dosdevices/com4
Important: make sure you have proper rights to access the device, by checking if your user is member of the group under wich it has been created:
$ ls -la /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Ago 25 17:04 /dev/ttyACM0
$ cat /etc/group | grep dialout
dialout:x:20:your_user
If your user isn't on the proper group:
$ sudo usermod -aG dialout your_user
On Ubuntu 16.04, it was necessary to set the serial as “raw” interface, otherwise the voice quality when testing (i.e. connecting to echo module 99) will be bad; to fix that,create an udev rule:$ sudo vi /etc/udev/rules.d/49-dv4mini.rules
# 04d8:000a - DV4mini
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="000a", RUN+="/bin/stty -F /dev/%k raw"
Then reboot the system
4) Install DV4mini software (tested version 1.65)
Download dv4mini software from http://www.dv4mini.de/edownload.html
Download dv4mini software from http://www.dv4mini.de/edownload.html
$ wine 2016_05_23_setup.exe
5) First start dv_serial.exe
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/DV4mini/dv_serial.exe
Depending on what version of dv4mini software you've installed, the path can be either "Program Files (x86)" or "Program Files"; if "wine: cannot find (...)" appears, just change the command above accordly.
If everything goes fine, you’ll see in the logs the dv4mini dongle has been found by the dv_serial.exe (among a lot of other stuff)
6) Then start dv4mini.exe after some seconds
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/DV4mini/dv4mini.exe
On the 1st time it runs, it’s usual to present internet connection and other kind of errors, show an alert then close itself; just run the command again to star it over
After the GUI comes up, insert your DMR ID and set frequency accordly
Some other messages are likely to show up on promt and on the GUI itself, but the program connects to the reflector and works.
USING AFTER SETUP
In order to have it working with last used settings, you only need dv_serial.exe running in background:
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/DV4mini/dv_serial.exe > /dev/null &
You could include this line on a boot script – but remember to run it as your user, as the settings reside in your home directory.
Only if you wish to change the settings (i.e. the frequency or reflector, or even the mode), you'll need to open dv4mini.exe - but remember to first start dv_serial.exe as mentioned above, and give at least 30 seconds for it to come up:
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/DV4mini/dv4mini.exe
If you close dv4mini.exe, it’ll also close dv_serial.exe. So to use the reflector, you’ll need to start dv_serial.exe again
