Welcome, Guest. Please Login.
Linuxslate.com Forums

<=== Back to the Linuxslate.com Homepage

Newest Forum Posts

Jun 2nd, 2023, 6:22am
News: Welcome to the linuxslate.com forums. May 2020: Forum registration has been disabled due to recent advancements in bypassing captcha's and the resulting increase in spam on the forums. Registration may be re-enabled at a later date. In the meantime, if you would like to register, please email "john" at this domain, and I will manually create an account for you. Registration is for legitimate and relevant discussion only. Misused accounts will be deleted without warning.

Pages: 1
Wouxun KG-UV9D(plus) Programming on Linux (Read 7326 times)
Forum Administrator


Posts: 113
Wouxun KG-UV9D(plus) Programming on Linux
Sep 26th, 2018, 7:16pm
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:
-- An Appropriate Cable:
Obviously, the official one should work.
I made my own using an FTDI adapter as described here:

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:
Again, I recommend performing the command to install the Stable-branch.
-- You may need to install winetricks:
sudo apt-get install winetricks 

-- Run winecfg to create a Windows "C" drive, and configure wine.

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.
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.
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):
sudo apt-get install minicom 

-- Run minicom to setup the serial port:

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.
-- 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.
ls /dev/tty* 

USB devices should be at the end of the list.
Back to top
« Last Edit: Sep 27th, 2018, 8:29am by Administrator »  

Mobile Linux ?
Got That!
WWW   IP Logged
Forum Administrator


Posts: 113
Re: Wouxun KG-UV9D(plus) Programming on Linux
Reply #1 - Sep 9th, 2020, 9:26am
The Wouxun KG-UV9D and KG-UV9D(plus) (as well as other Wouxun models) are now listed as supported radios under CHRIP.
"CHIRP is a free, open-source tool for programming your amateur radio. It supports a large number of manufacturers and models, as well as provides a way to interface with multiple data sources and formats."
While I have not tried it yet, running the Wouxun software under WINE may not be necessary any more.
Download the most recent CHIRP from https://chirp.danplanet.com/projects/chirp/wiki/Home
Back to top

Mobile Linux ?
Got That!
WWW   IP Logged
Pages: 1