K9JM CI-V User Manual - page 6

Manual is about: K9JM CI-V Router An intelligent CI-V interface for Icom PW-1 amplifiers

Summary of CI-V

  • Page 1

    K9jm ci-v router user guide for software version 1.11 march 2015 what can be supplied: the k9jm ci-v router is sold in two forms: 1. The ci-v interface board for the arduino mega 2560, assembled and tested 2. Full k9jm ci-v router. Assembled and tested. Includes ci-v interface board arduino mega 256...

  • Page 2

    To make a complete ci-v router, the following elements are suggested. Many people may wish to build this into their own enclosure and provide additional functionality. Below is the shopping list that comes with the "everything" option. The "everything" option comes programmed, tested and configured ...

  • Page 3: Wiring

    Wiring wiring is straight forward. There is no difference between the three ci-v ports, so run a shield cable to each item. Connect the usb cable, usb a male to the computer and the usb b male arduino board. An optional wall mounted power supply can be connected to the ci-v router. Important: the ro...

  • Page 4: Getting Started

    Getting started there are six steps that are necessary to get the ci-v router up and running: 1. Installing arduino usb drivers (windows only) 2. Downloading ci-v software to the arduino board 3. Configure the ci-v router 4. Configure your icom radios 5. Configure the pc host software 6. Configure (...

  • Page 5

    Note: if you have a rev3 board properly installed, on the above "computer management" screen will read "arduino mega 2560 r3 (com#)" if you are running windows, and if the arduino is connected to the pc, it should be visible in your computers "computer management" screen. Please note which com port ...

  • Page 6

    And select the desired com port number in the highlighted box if the port is marked "in use" and it is a "virtual" com device that is currently not in the machine, select it to take over that device. If you have a physical com port that you wish to re-assign to another number, thus freeing that com ...

  • Page 7

    Now select the change port number button. The rest of the parameters are the defaults and are always over written by the program. Using this technique one can organize the com port number on the computer to hopefully make sense and to work will all desired programs. Note: remember the com port numbe...

  • Page 8

    With the arduino connected to the computer and remembering the com port number from above, open a command prompt window, navigate to this directory and run the following command upload # where the # is the com port number for the arduino mega board that you hopefully remembered from the first step. ...

  • Page 9

    On a virgin arduino board or any completed system shipped, the configuration will be in the default state. The baud rate for the ci-v ports is 9600 and 38400 for the usb 'computer'. To confirm or change these parameters, the following proceedure can be followed. Configuring the ci-v router is done b...

  • Page 10

    Configuration you like, give it a name in the "save session" line and hit save. Note: this configuration program always runs at 115200 baud rate regardless of the settings configured. Pressing the reset button on the arduino will bring up the following: note: these settings do not represent the defa...

  • Page 11

    However, when the pc controlling software switches to the sub vfo to check what frequency it is on, then everything else (pw-1, antenna switches etc) will follow. If subswitch is off, the reported frequency will remain with the "main" vfo when the pc software commands a switch to the sub vfo. This e...

  • Page 12

    10-small power table = false 11-driver power table 12-icom radio ci-v address 0x64 hex 13-reset all to default values which parameter to change? 2 2 select baud rate: 1- 300 2- 1200 3- 2400 4- 4800 5- 9600 6- 14400 7- 19200 8- 28800 9- 38400 10- 57600 11- 115200 which baud rate 1..11? 7 config ci-v ...

  • Page 13

    Step four: configure your icom radios consult your icom radio manual to discover how to configure the ci-v settings. Most icom radios have three setting for the ci-v bus: 1. Baud rate 2. Address 3. Transceive 4. Ci-v with ic-731 make sure the baud rate matches the baud rate as configured for the ci-...

  • Page 14

    Make sure the icom code matches the address of your radio. Ptt commands can be used over this interface, if supported by your radio. Page 14.

  • Page 15

    In the manual and the screen shot above, n1mm states that transceive should be set off in the radio. Http://n1mm.Hamdocs.Com/tiki-index.Php?Page=supported+radios#general_icom_information_all_icom_owners_please_read _ the n1mm manual states that users shall " "ci-v transceive" to off - if ci-v is set...

  • Page 16

    Set the proper com port and radio type in the "configurer" window, the click on "set" for the details. Again dtr and rts should be off, 8 bit, 2 stop bit. Make sure the icom code matches the code for the radio which is to be controlled. Page 16.

  • Page 17

    Writelog version 10.70 and above: first, i would like to thank the fine folks at writelog for loaning me a temporary copy for testing. Versions of writelog before 10.70 have not been tested. Writelog does not require the resistor pull up on the "reset" line. Dtr and rts must be turned off in the wri...

  • Page 18

    When finished, remember on the menu select, "setup" and "save configuration..." n3fjp software n3fjp programs does not require a pull up resistor on the arduino "reset" line. Start n3fjp contact log version 4.2 and select "settings" on the menu, then select "rig interface". N3fjp uses fairly generic...

  • Page 19

    Hit the 'test' button to see if it works. Test mode change and frequency change with the lower buttons. Once you see things working, hit the 'done' button and you're good to go dx4win to use dx4win you must use ci-v router software version 1.02 or higher. These tests were done with version 8.05 of d...

  • Page 20

    Win-eqf again, turn dtr and rts off, 8 bits, no parity, 2 stop bits. Omnirig omnirig is not a program, it is an interface that programs can use to interface to a radio. This is more complicated than the average program, so there is a special omnirig users manual available at the k9jm web site: http:...

  • Page 21

    At the 2014 visalia dx convention i sat down and talked with the developer of hrd. I talked him into changing the program to support the k9jm router. I also bought a copy of the program. Starting with version 6.2 released in mid may 2014, the program now supports 38,400 baud. Having used the program...

  • Page 22

    Make sure there is only one radio on a com port. See above. This is how the arduino appears in the serial port window as com6. See below: page 22.

  • Page 23

    Trx manager i know very little about trx manager, but i did download and install the "demo" version 4.6.5 set up is had by going to the menu item parameters and selecting "setup" page 23.

  • Page 24

    Rts and dtr enabled boxes must be unchecked! Cat speed must be set to the same speed as the router computer baud rate. Trx port must be set to the com port for the ci-v router. Trx-manager supports only com 1 through 15, odd for a program that supports so many devices. The dual control, when checked...

  • Page 25

    Rig, tnc..." the window below comes up and select the "radio ifc" tab. Shown below is a screen shot as configured for my 756pro2. Note that dtr and rts must be unchecked. Poll icoms can be checked or not, operators choice. Mixw i am not an expert with mixw. This program is a digital mode and logging...

  • Page 26

    Select the proper icom model, set your favorite defaults, then hit 'details' button. Again in my configuration, the ci-v router is on com6. Again two stops bits and rts and dtr are always off. You should be off and running. Step six: configure (sync) the pw-1 amplifier (required if used with pw-1) f...

  • Page 27

    Description leaves much to be desired. There are many good resources on the net. Http://www.Qsl.Net/icom/pw1/pw1pro2.Html these are the fundamentals: there are two connections between the icom radio and a transceiver, the accessory cable and the rmeote cable (which provides the ci-v bus). First, whi...

  • Page 28

    Sync proceedure: for synchronization the ci-v router does not have to be operational. It should be cabled up, but power on the computer and ci-v router should be off. Make sure all radios are configured to the same baud rate (9600) and ci-v transceive is set to "on". It is wise to always reset the p...

  • Page 29: How Does It Work

    How does it work the heart of the ci-v router is an atmel microprocessor on a arduino mega 2560 board. It is a stand alone 16 mip computer that runs a program that is located in it's internal 256k of flash memory. The key feature of this processor is that it has four hardware serial ports. It is cap...

  • Page 30: Configuration Settings:

    Put a radio on the same port as a pw-1, there are a number of ci-v listening only devices, such as automatic antennas or antenna tuners or band decoders. These devices can be placed on the same port as the pw-1. Because the ci-v router is a store and forward message router, each port can operate at ...

  • Page 31

    Subswitch: this feature corrects a problem whenever a pc logging program is set to acquire both the main and sub vfo transceiver frequencies. The acquisitions of both vfo frequencies in past versions of the router code caused ci-v to report the new sub frequency to pw-1. Subswitch is user configurab...

  • Page 32: Driver Power Level Table

    Sent to the configured icom radio ci-v address telling the radio to turn split off, which is a command '0x0f'. Then a "select main readout" command 0x07 subcommand 0xd0 is sent, so that if the sub readout was selected, it will be reset. Then a sent frequency command 0x05 containing the new frequency...

  • Page 33: Warning!

    This feature uses the icom radio command 0x14, subcommand 0x0a, that can read and write the position of the rf power control on the radio. Most modern icom radios support this command, but perhaps not all. Icom ic756 pro's, 7600, 7700 and 7800 definitely support this feature. Check with your radio's...

  • Page 34

    Note: icom radio ci-v address must be configured before using either the split off when qsy > 1mhz feature, or any driver power level features. Config ci-v router 1 -computer baud rate = 38400 2 -ci-v baud rate = 9600 3 -transceive msg to other radios = true 4 -transceive msg to usb = true 5 -usb ec...

  • Page 35

    There are two sizes of driver power table, small and large. The 'small' table, has larger power band width, and is designed for broadband amplifiers, such as solid state amplifiers like the icom pw-1. The not small power table is designed, has smaller power band width, and is designed for narrow ban...

  • Page 36

    16 - 28000khz -> 28500khz = 0 0.0% 17 - 28500khz -> 29000khz = 0 0.0% 18 - 29000khz -> 29500khz = 0 0.0% 19 - 29500khz -> 29700khz = 0 0.0% 20 - 50000khz -> 51000khz = 0 0.0% 21 - 51000khz -> 52000khz = 0 0.0% 22 - 52000khz -> 53000khz = 0 0.0% 23 - 53000khz -> 54000khz = 0 0.0% select band 1..23 0 ...

  • Page 37

    17 - 1992khz -> 2000khz = 0 0.0% 18 - 3500khz -> 3525khz = 0 0.0% 19 - 3525khz -> 3550khz = 0 0.0% 20 - 3550khz -> 3575khz = 0 0.0% 21 - 3575khz -> 3600khz = 0 0.0% 22 - 3600khz -> 3625khz = 0 0.0% 23 - 3625khz -> 3650khz = 0 0.0% 24 - 3650khz -> 3675khz = 0 0.0% 25 - 3675khz -> 3700khz = 0 0.0% 26 ...

  • Page 38

    80 - 52000khz -> 52500khz = 0 0.0% 81 - 52500khz -> 53000khz = 0 0.0% 82 - 53000khz -> 53500khz = 0 0.0% 83 - 53500khz -> 54000khz = 0 0.0% select band 1..83 0 or enter to return and save: ? 79 - 51500khz -> 52000khz = 0 0.0% 80 - 52000khz -> 52500khz = 0 0.0% 81 - 52500khz -> 53000khz = 0 0.0% 82 -...

  • Page 39

    Essentially the program has control of the rf power knob. The user should not be moving the rf power knob. Example below: select band 1..83 0 to return and save: ? 9 + increase - decrease 1-9 change increment any key to exit current value = 0 0.0% current value = 1 0.3% current value = 2 0.7% curren...

  • Page 40: Ci-V Interface Board Test

    If both are true, and the operator does not adjust the rf power control while in a band segment, then when the router reads the value upon leaving a band segment, it will get the value that was set when entering the band segment, and thus the value will not be changed. Note: while this behavior is t...

  • Page 41: Hints And Kinks

    For this program, the ports are numbered 1, 2 and 3. Where port one is the ci-v port closest to the usb connector. Port 2 is in the middle, and port 3 is the port closest to the coaxial dc power con- nector. Using a ci-v cable, connect it from one port to another port on the router. If during each 1...

  • Page 42

    Available at http://k9jm.Com/civ_router/civsniffer.Zip in the zip file is a detailed description of how to use the tool. It permits one to use any ci-v interface to make their pc into a ci-v message monitor, sniff out messages. Transceive messages: all icom radios have a setting called "transceive" ...

  • Page 43

    These are the default settings for the port. Which is to say, that if a program doesn't configure the port before opening, these are the setting that will be in place at boot time. Since every program i have ever seen, sets the com port parameters, this screen is meaningless. It is useful because of...

  • Page 44: Warranty

    Open the command prompt do all these steps from the same command prompt. 1. Right-click “command prompt” in accessories and choose “run as administrator” if using vista or windows 7 2. Enter “set devmgr_show_nonpresent_devices=1" – without the quotes obviously 3. Enter “start devmgmt.Msc” 4. In the ...