The Wouxun KG-UV9D(plus) "Official" Programming software works on Linux/Wine ! Skip to after the screen shot for what you need to get it working...
To be clear -- This article is about running the "official", proprietary Wouxun Programming software. We are not talking about CHIRP, or any other Open Source Ham Radio Programming software.
You need:
-- A Wouxun KG-UV9D(plus) Radio (if you don't find this at least somewhat obvious, you probably do not need to read the rest.)
-- The Software from the Wouxun Website:
http://www.wouxun.com/resource/download.aspx?flid=1094 -- An Appropriate Cable:
Obviously, the official one should work.
I made my own using an FTDI adapter as described here:
http://www.miklor.com/COM/UV_Technical.php
Perhaps not pretty, but I can verify that the same cable as described in the linked article work for the KG-UV9D(plus).
-- A PC or Laptop running a current Linux. I was using Ubuntu 14.04
The Steps:
-- You must install Wine from the official WineHQ repository. The versions supplied from the default Ubuntu repositories are not up to date enough. Follow the instructions here to add the official winehq repository, and then install the latest stable version:
https://wiki.winehq.org/Ubuntu Again, I recommend performing the command to install the Stable-branch.
-- You may need to install winetricks:
Code:sudo apt-get install winetricks
-- Run winecfg to create a Windows "C" drive, and configure wine.
Code:winecfg
During the first wine startup, it will ask you to install 2 missing components, one is for Windows .NET, and one is for Windows programs that use embedded HTML. Answer "Yes" or "OK" to both.
You do not have to change or configure any windows settings, just hit "OK".
-- Make the cable accessible to the user.
Code:sudo adduser [your_user_name] dialout
Replace [your_user_name] as appropriate, without the brackets.
"Drivers" for the cable are not needed on Linux.
-- Map the USB device to a Windows "com" port:
NOTE: The cable (or FTDI adapter) must be connected to the computer in order to have a /dev/ttyUSB0.
Code:rm ~/.wine/dosdevices/com1
ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1
This removes the old link, and then links ttyUSB0 (the programming cable) to Windows COM1.
If you have other USB serial devices connected, change the line above to match the correct USB device.
-- Install the Wouxun programming software:
Find the downloaded file UV9DP_SEN.rar in your Downloads directory.
Right-click it, and choose "Extract Here".
Find the resulting Installer file KG-UV9D(Plus) setup.exe, which should be in the same directory. Run the installer, and answer the prompts as normal. Select install shortcuts for a single user, when asked.
This should create a link on the desktop as shown on the screenshot above.
-- Install minicom from you distribution repository (If you do not have it already):
Code:sudo apt-get install minicom
-- Run minicom to setup the serial port:
Code:minicom
The first time minicom is run, it will ask for defaults. The point is, we want to set /dev/ttyUSB0, and set it to 2400 baud, 8-N-1. After the initial setup, the commands would be:
Alt-A --> O (letter "o") --> Serial port setup --> E --> (use a and b keys to select 2400) --> verify 2400 8N1 at the top --> Hit Enter twice to save, then select Exit --> Alt-A --> Q to quit minicom without reset --> Yes.
-- Turn on, and connect radio
-- Run the Wouxun Programming software
Click the link created during the installation (not the installer). If it is not on the desktop, you can find the installed executable in: ~/.wine/drive_c/Program\ Files/KG-UV9D\(Plus\)/
Click "Read" (Downward Facing Blue arrow), and it should read the data from the radio.
The radio will reboot after a successful Read or Write. Apparently, this is normal.
Suggestion: Save your radio settings file outside of the .wine directory. This way, you can remove/upgrade/etc. your wine environment as you wish, and you will still have your settings saved. Back up your settings files as part of your regular Linux backup.
Troubleshooting:
-- If the Wouxun programming software will not run:
run winetricks, and select "Select the default wineprefix" "OK" --> "Install a Windows DLL or component" "OK", and then select mfc42 and msvcirt.
vcrun6 and vcrun6sp6 should already be selected. Hit "OK". When it competes, try to run the Wouxun app again.
-- Wouxun programming software runs, but will not connect.
Check the serial port settings. minicom can be used as a serial sniffer to help understand what is happening.
Try reversing the TX and RX wires on the FTDI board (home made cables only) as mentioned in the article referenced above.
-- Check the Cable (or FTDI) device name:
If the cable is disconnected, and then re-connected, it may re-enumerate to /dev/ttyUSB1 (or another number). Disconnecting the cable from the USB port, waiting a few seconds, and then reconnecting it should set it back to the lowest available ttyUSB device number.
Code:ls /dev/tty*
USB devices should be at the end of the list.