A Data Decoding Utility for Flex Radios
(Steve Nance - K5FR)
The Data Decoder Utility (DDUtil) enables you to:
This program provides the automation required to decode and present transmit frequency data to select frequency sensitive devices such as linear amplifiers, antenna controllers (SteppIR), antenna tuners, antenna band switchers, etc. DDUtil may be used in a stand-alone mode or with a radio control program such as DXLab Commander, Ham Radio Deluxe, Mix2W or any other radio control program that can use standard Kenwood CAT commands for communication with PowerSDR.
DDUtil automatically senses when a radio control program is trying to communicate with PowerSDR and modifies it's mode of operation requiring no user intervention. See the "How it Works" section for a more detailed description of program design.
An XML file is used to provide the reference data needed for the BCD output data. A sample file is included with the distribution files to serve as a guide. This file may be created from scratch or modified from the sample provided and then saved with an appropriate user name. All file modification may be accomplished within the program or may be done in any XML file editor of the users choice. But, unless the user is familiar with XML file editing it is recommended that XML file modification be confined to DDUtil until proficiency is obtained. Please note that this file requires a specific format see the 'BCD Data File Format' topic in Other Topics for details.
The initial release is designed for the Flex family of radios including the SDR-1000 and Flex5000 series, but may well be extended to other radios in the future.
Open the utility and the
following form will be displayed.
Ports Setup Tab
Serial Ports
In the Serial Ports group select the CAT Port you will use to talk to your radio. This will be one of a virtual port pair like N8VB's VCOM utility provides. In this illustration PowerSDR is set to port 11 and DDUtil is set to port 10. See this Flex Knowledge Base article for how to setup virtual serial ports.
Optionally, select from the drop down box the Passive Listener Port you will use. Usually COM1, but may be any RS-232 compliant hardware serial port connected to your pc including add-on cards or USB to serial adapters.
Optionally, select from the drop down box the Radio Control Port you will use. This will be one of a virtual serial port pair like N8VB's VCOM utility provides. In the example above the Radio Control program (HRD, etc.) port is set to COM4 and DDUtil is set to COM5.
Serial Port Notes:
A typical VCOM ports setup for DDUtil could be:
Pair 10 <-> 11 DDUtil CAT (10), PowerSDR CAT
(11)
Pair 4 <-> 5 HRD CAT (4),
DDUtil Radio Control (5)
In the setup section of the Radio Control Program set the radio type to Kenwood, the speed parity and stop bits don't matter on virtual serial ports.
Set the Cat Polling Interval. This defaults to 1000 which equates to 1 second. Lower numbers speed up the polling time, but increase CPU utilization so caution should be exercised when setting this number. 1000 has proven to be a satisfactory interval.
Parallel Port
In the Parallel Port group, optionally, select the parallel port you will use. Usually LPT1, but may be any parallel port including add-on cards or USB to parallel port adapters.
If your not sure what your port numbers are you can get help here finding out if you have any parallel ports and what their numbers are.
If you are using an add-on board or USB to Parallel adapter for your parallel port the port address will have to be entered manually. Click here for a guide on how-to find the address for your non-standard parallel port and enter it into DDUtil.
Data Signals
In the Data Signals group, select the device you want to use as a file source for the BCD data. In order to make this selection you will have to go to one or more of the device tabs and setup a source. See the following section for advice on this.
Other
Follow SDR - Select this check box if you want to Slave another radio to PowerSDR in-lieu of a Passive Listener device. This feature allows another radio to follow PowerSDR's frequency, which is handy if your SDR is an old three (3) board stack or SoftRock. Be advised that in this mode receiver muting and antenna switching is required when transmitting from the slave radio or bad things will happen to your SDR.
Slave Radio Type - Select the radio type you wish to use as the slave.
Note: Right-click on the form background to display a menu of options and select "Slave Radio Info" for the radio models in each radio type.
PL/Radio Comm - Selects serial communication parameters for the Passive Listener port. Consult your radio users manual for this if necessary.
CI-V Addr - Sets the appropriate CI-V Hex address if using an ICOM radio. Consult owner's manual for information on this.
Device Tabs
Selecting
the first of the Device tabs at the top of the form will display the following form.
This page of the setup form is for configuring the BCD data file. This file is needed to set the parallel port BCD codes for your frequency dependent device and will vary according to the device's configuration and design criteria. The following is an example of the codes required for a Yaesu Quadra amplifier to automatically switch bands as PowerSDR changes frequency.
160 = 1 80 = 2 40 = 3 30 = 4 20 = 5 17 = 6 15 = 7 12 = 8 10 = 9 6 = 10
You input a digital number for a specific frequency and the decoder converts it to BCD at the parallel port (i.e. 7 = 0111).
This page is pretty self explanatory, here is a description of the controls functions.
Device Name = Give this device a suitable name to distinguish it in the device list on the Ports tab. This name will be transferred to the device tab name for easy recognition.
Enabled = indicates the device is available for selection by the Ports page Data Signals Device selector combo box.
Data Grid = Display and/or edit the Frequency / Data pairs. This is the data used by the BCD converter to output on the parallel port. See Other Topics for a discussion on BCD data file format.
File Name | Select = When pressed brings up a file dialog where a file may be selected for input into the data grid.
File Name | Re-Load = Will re-load the displayed file. This is intended to allow salvaging a file that has been edited and the user decides to abandon it due to errors or whatever.
File Name | Save = After creating or editing a file in the data grid pressing this button will save it to the file named in the File Name box.
Note: This will overwrite whatever file is in the file name box. Be careful!
Help = This help file.
Using the DDUtil is straight forward and shouldn't require more than a minimal amount of familiarization for the user to be comfortable with it's use.
All control settings on the DDUtil forms are stored and remembered from session to session.
The following information is required to connect DDUtil to your device.
If you don't know what ports are installed on your pc the following procedure will tell you.
All your hardware ports will be listed there.
General
This software extends the users ability to control ancillary frequency sensitive devices such as:
Philosophy / Design Criteria
Program Flow
Upon program opening the following events occur:
The program is driven by events from either the serial ports receiving data or the polling timers counting down and firing. The following descriptions describe these events.
This indicates that logger port polling interval has expired which also means that NO CAT data has arrived from the logger/radio control program for 10 seconds
This indicates the CAT port polling interval has expired which also means the logger is not active
Copyright (C) 2007 Steve Nance (K5FR)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; If not, see http://www.gnu.org/licenses/
You may contact the author via email at: steve@K5FR.com