How to install CS-R20 software for Icom IC-R20 on Linux
It seems that with a little determination, the CS-R20 for the Icom IC-R20 software can be persuaded to run on Linux. I eventually made the CS-R20 software load under Kubuntu Linux using Crossover (a commercial implementation of WINE). The method in this article should work with many other Debian-derived Linuxes too, perhaps with a little tweak here and there!
The IC-R20‘s USB to RS232 chipset is automatically detected and a module is loaded for it in modern Linuxes – so no need for a driver. The only issue, at time of writing, is that whilst the CS-R20 software can write 100% reliably to the IC-R20 I am having problems reading from it as detailed at the end of this article. I am not sure why but when I find out I will let you know!
Related to this article…
- Icom IC-R20 radio scanner review
http://www.garfnet.org.uk/joomla/index.php?
option=com_content&view=article&id=88&Itemid=58
- Sound recordings from my Icom IC-R20 Scanner
http://www.garfnet.org.uk/coppermine/thumbnails.php?album=504
Running Windows Apps on Linux
The secret to persuade the CS-R20 software (and many other Windows applications) to run at all on Linux is firstly to download and install Crossover Linux (6.10 or higher) on your Linux system. The latest Crossover Linux is available for a very modest price with very flexible licensing terms from…
In this instance we will use the Crossover Windows Application installer to create a “Windows 2000 Bottle” dedicated to the Icom software.
A few things you need to be aware of
Forgive me if I am teaching my proverbial grandmother to suck eggs but folks new to Linux need to be aware of a few things before proceeding…
- Crossover Linux is a commercial implementation of WINE, written by Codeweavers, a major contributor to the WINE project. It stores its “bottles” in a hidden folder in the user’s home directory. In my case, this is /home/garf/.cxoffice/Icom
- Linux file naming is a little different from Windows. Please see Linux FHS article for more help and information about Linux file systems.
- Linux deals with serial ports differently from Windows. In Windows the serial ports are refered to as COM1, COM2 etc. In Linux the system accesses serial ports via a series of files /dev/tty0, /dev/tty1 etc. In the case of serial ports accessed via a USB converter, Linux accesses these ports via files called /dev/ttyUSB0, /dev/ttyUSB1 etc.
- The files /dev/ttyUSB0, /dev/ttyUSB1 etc are generated on the fly as you connect the USB cable and are deleted again when you remove it.
- The IC-R20 is really communicating using a serial port. Inside the IC-R20 is a serial to USB converter based upon the FT245 series serial to USB chip. The driver for this is compiled into many modern Linux kernels. This family of chips is very common in devices that use USB to make a serial connection. It needs no additional driver in most modern Linuxes – unlike Windows.
- In order for Windows software running on Linux via WINE to access the Linux serial ports, it is necessary to build a symlink between where the application expects to find the serial port and where Linux actually handles it.
Ok, if that is all understood then let’s go to work…
Installing CS-R20 software in Crossover
Click the Crossover | Install Windows Software KDE or Gnome menu item. The installer wizard will appear.
- Tick the Install Unsupported Software box and click Next.
- Ignore the Before installing unsupported software… screen and cllick Next.
- Tick the Other installer file box and click Browse to find the CS-R20 set up file, setup.exe then click Next.
- Make sure the New Bottle box is ticked and in the box next to it type Icom. Also ensure that Create from Tempalte Win 2000 is selected. Click Next.
- The CS-R20 installer should now run just as if you were using Windows. The CS-R20 installer will ask all the usual questions such as what language you want to use (English or Japanese) and then for your serial number. When it has completed the Crossover installer will simulate a Windows reboot.
- You are done. A menu item for CS-R20 should appear in the KDE or Gnome menu. It should also geneate a desktop icon too.
OK. That’s the software sorted. The next step is to give the CS-R20 software a serial port….
Making sure CS-R20 software can see a serial port
- Switch on the IC-R20 and connect the USB Lead. Remember that the /dev/ttyUSB0 file is created on the fly and only exists when a connecton is made.
- To find out which USB device file IC-R20 is using open a terminal and type…
dmesg | tail
The the last few lines should resemble this…
- From a terminal window create a symlink from the dos devices subfolder in the Icom “bottle” to the appropriate Linux device file. I am assuming the IC-R20 is connected to /dev/ttyUSB0 and that I wish to assign this to COM2. To do this type the following in the terminal window…
ln -s /dev/ttyUSB0 ~/.cxoffice/Icom/dosdevices/com2
- Now start the Icom CS-R20 software and select COM2 from the CS-R20 Initial Setup dialog…
- You shoukd now be able to use the CS-R20 software
These functions work fine…
- Create and edit .icf files
- Write .icf files to the IC-R20
- Read the Clone information from the IC-R20
Bugs and caveats
There are two issues you need to be aware of…
- It seems that currently it is only possible to write radio station data to the IC-R20. If you attempt to read station data from the IC-R20 then the CS-R20 software generates an “illegal data” error and freezes. I am working on a fix for this. If anyone gets there before me then please let me know how you did it! http://www.garfnet.org.uk/contact
- There is an issue with Ubuntu Linux not recognising USB to serial converters due to a conflict with a preinstalled Braile TTY device. This not merely affects this exercise but is a affecting those triing to connect Wacom tablets etc. via a USB port. Providing you are not using the Braile TTY then this device can be safely removed. To do this, disconnect the IC-R20 and either use your favourite GUI pacage manager or use the following command in a terminal window…
sudo apt-get remove brltty
When you reconnect your IC-R20 via USB and run dmesg | tail from a terminal window, you should see the USB converter is now loaded correctly.
References
- Bob Parnass’s software site. He has written a number of scanner control packages for Icom and Yaesu scanners and his stuff does run on Linux. No softs for the IC-R20 yet though.
http://www.parnass.org- Crossover Linux – needed to make the Icom CS-R20 software for Windoze run on Linux
http://www.codeweavers.com
- Icom Japan IC-R20 Page
http://www.icom.co.jp/world/products/receivers/r20/index.html- Icom UK IC-R20 page
http://www.icomuk.co.uk/categoryRender.asp?categoryID=3510&cCID=5459
- Information about PC Connectivity from Tony Ling’s excellent site
http://homepage.ntlworld.com/tony.ling/radio/ic-r20/R20um22.htm- Kubuntu Linux
http://www.kubuntu.org- Making Icom CS-R20 software for IC-R20 run on Linux
http://www.garfnet.org.uk/joomla/content/view/89/58/
- Nevada Radio, the Portsmouth based distributor where I bought my Icom IC-R20. Nevada also stocks the CS-R20 scanner software
+44 (0)23 9231 3090 – ask for John Gordon
http://www.nevada.co.uk- RadioReference Wiki – lots of useful IC-R20 links http://wiki.radioreference.com/index.php/IC-R20
- Strong Signals IC-R20 page
http://www.strongsignals.net/access/clubs/ic-r20/index.cgi- Sound recordings from my IC-R20 Scanner
http://www.garfnet.org.uk/coppermine/thumbnails.php?album=504- Tony Ling’s Icom IC-R20 Manual
http://homepage.ntlworld.com/tony.ling/radio/ic-r20/R20um00.htm- Ubuntu Linux
http://www.ubuntu.com