{"id":264,"date":"2017-08-04T16:12:47","date_gmt":"2017-08-04T16:12:47","guid":{"rendered":"https:\/\/www.nf8m.com\/nf8m\/?p=264"},"modified":"2018-02-20T16:29:00","modified_gmt":"2018-02-20T16:29:00","slug":"rig-control-and-keying","status":"publish","type":"post","link":"https:\/\/www.nf8m.com\/nf8m\/rig-control-and-keying\/","title":{"rendered":"Rig control and keying"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-265\" src=\"https:\/\/www.nf8m.com\/nf8m\/wp-content\/uploads\/2017\/08\/na_keying_pinouts_400.jpg\" alt=\"\" width=\"400\" height=\"262\" srcset=\"https:\/\/www.nf8m.com\/nf8m\/wp-content\/uploads\/2017\/08\/na_keying_pinouts_400.jpg 400w, https:\/\/www.nf8m.com\/nf8m\/wp-content\/uploads\/2017\/08\/na_keying_pinouts_400-300x197.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/>I recently replaced my shack computer, a Dell Optiplex, with a Dell Precision i7 workstation. I generally buy off-lease computers, since they are only a couple years old, well-equipped and reasonably priced, and Linux runs on them just fine.<\/p>\n<p>For contest logging, I&#8217;m slowly working in the N1MM direction (there&#8217;s a trick or two to running it well under <em>wine<\/em>), so I still use a DOS-based logging program that relies on serial and parallel ports for keying and rig control.<!--more--> The beauty of running DOS under Linux (via <em>dosemu<\/em>) is that you can assign any hardware resource to what DOS sees as COM1, LPT1, etc. <em>dosemu<\/em> interfaces to the device socket, and Linux does the heavy lifting of translating that into the physical port.<\/p>\n<p>The Optiplex had a serial port and a parallel port, so I was using the serial port to do rig control (the TS-590SG helpfully has an honest-to-goodness RS232 port) and the parallel port for CW keying via a homebrew interface similar to the diagram above. However, with the decline of printers with Centronics parallel interfaces (nearly all are now either USB or Ethernet), computers are losing the 25-pin parallel port &#8211; and the 9-pin RS232 interface is becoming more and more scarce as well. The Precision workstation doesn&#8217;t have a parallel port, so I had to make some changes so I could still do both rig control and keying.<\/p>\n<p>Fortunately, the 590 also has a USB port, over which you can do both rig control and audio interface. You connect the USB port to the computer and the rig appears as a second sound card, to which you can point <em>fldigi, wsjt<\/em> or other sound-card mode digital software.<\/p>\n<p>I first tried doing both rig control and keying over the serial port using a breakout cable that I built, but ran into some configuration problems with the logger. I don&#8217;t know why it didn&#8217;t work, but it might have been that the CTS\/RTS or DSR\/DCD lines weren&#8217;t tied, which the rig might have relied on for handshaking. So I skipped that step and decided to configure the rig control over USB instead. Since <em>dosemu<\/em> lets you point its COM ports at any system device, I set up <em>dosemu<\/em> so that COM1 was the usb serial device (\/dev\/ttyUSB0) and COM2 was the hardware serial port (\/dev\/ttyS1), which was configured in BIOS to be COM2. After setting up the logger to use COM1 for rig control and COM2 for keying, everything worked great!<\/p>\n<p>Getting <em>dosemu<\/em> to run properly with DOS-based logging has been a struggle at times, but I did finally settle on a good way to do it. That will be the subject of another article.<\/p>\n<p>So, look for me in the next CWops sprint or other CW contest, and I&#8217;ll be keying away with my serial port interface.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently replaced my shack computer, a Dell Optiplex, with a Dell Precision i7 workstation. I generally buy off-lease computers, since they are only a couple years old, well-equipped and reasonably priced, and Linux runs on them just fine. For contest logging, I&#8217;m slowly working in the N1MM direction (there&#8217;s a trick or two to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.nf8m.com\/nf8m\/rig-control-and-keying\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Rig control and keying&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,11],"tags":[],"class_list":["post-264","post","type-post","status-publish","format-standard","hentry","category-cw","category-equipment"],"_links":{"self":[{"href":"https:\/\/www.nf8m.com\/nf8m\/wp-json\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nf8m.com\/nf8m\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nf8m.com\/nf8m\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nf8m.com\/nf8m\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nf8m.com\/nf8m\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":4,"href":"https:\/\/www.nf8m.com\/nf8m\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/www.nf8m.com\/nf8m\/wp-json\/wp\/v2\/posts\/264\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/www.nf8m.com\/nf8m\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nf8m.com\/nf8m\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nf8m.com\/nf8m\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}