{"id":840,"date":"2017-12-30T23:06:31","date_gmt":"2017-12-31T06:06:31","guid":{"rendered":"http:\/\/www.lothlorien.com\/kf6gpe\/?p=840"},"modified":"2017-12-30T23:06:31","modified_gmt":"2017-12-31T06:06:31","slug":"winlink-on-mac-os-x-with-a-th-d74-over-bluetooth","status":"publish","type":"post","link":"https:\/\/www.lothlorien.com\/kf6gpe\/winlink-on-mac-os-x-with-a-th-d74-over-bluetooth\/","title":{"rendered":"Winlink on Mac OS X with a TH-D74 over Bluetooth&#8230;"},"content":{"rendered":"<p>This took a bit longer than I expected it to, but that&#8217;s usually the way things work when you don&#8217;t know what you&#8217;re doing. When it&#8217;s done, it works quite well &#8212; I&#8217;ve got Winlink Express running on my Macbook under High Sierra with wine &#8212; no Parallels or VMware Fusion needed!<\/p>\n<p>Here are the steps&#8230;<br \/>\n<!--more--><\/p>\n<ol>\n<li>Pair your Mac and your TH-D74 (System Preferences, Bluetooth) starting discovery on the TH-D74 (Configuration, Bluetooth, Pairing Mode) and accepting the pairing prompts.<\/li>\n<li>Make sure your TH-D74&#8217;s KISS TNC is set to use Bluetooth by going to Configuration, Interface, KISS and setting it to Bluetooth.<\/li>\n<li>Install <a href=\"https:\/\/brew.sh\/\">Homebrew<\/a>, if you haven&#8217;t.<\/li>\n<li>Using brew in a terminal, install wine and winetricks:<br \/>\n<code>brew install wine && brew install winetricks<\/code><\/li>\n<li>Run the following to set up Wine to use Windows 7 bindings and install .NET 3.5SP1:<br \/>\n<code>WINEARCH=win32; export WINEARCH<br \/>\nwinetricks dotnet35sp1<\/code><br \/>\nThis is going to take a while, so you might want to go make a cup of coffee. French press is best for this. Don&#8217;t go too far, though,<br \/>\n because the process has prompts you&#8217;ve got to click through.<\/li>\n<li>Go look at your <code>\/dev<\/code> directory and find the devices created for your paired radio. They&#8217;ll contain your radio&#8217;s Bluetooth name, and be prefixed by <code>tty<\/code> and <code>cu<\/code>. For example, mine were <code>\/dev\/tty.TH-D74Handheld-SerialPo<\/code> and <code>\/dev\/cu.TH-D74Handheld-SerialPo<\/code>. You&#8217;ll want to make symbolic links between those devices and files in wine&#8217;s <code>dosdevices<\/code> folder, like this:<br \/>\n<code>cd ~\/.wine\/dosdevices<br \/>\nln -s \/dev\/tty.TH-D74Handheld-SerialPo com1<br \/>\nln -s \/dev\/cu.TH-D74Handheld-SerialPo com2<\/code><br \/>\nI <em>think<\/em> you only need the <code>cu<\/code> file, actually, but I linked both of them while I was poking around.<\/li>\n<li>Edit wine&#8217;s <code>system.reg<\/code> file to add your new serial ports. Don&#8217;t ask me why this works &#8212; this is a bit of cargo-cult programming on my part taken from a few Google searches. With an editor, open <code>~\/.wine\/system.reg<\/code>, and someplace (I put it at the bottom) add the following:<br \/>\n<code>[Hardware\\\\Devicemap\\\\Serialcomm] 1231984861<br \/>\n\"Serial0\"=\"COM1\"<br \/>\n[Hardware\\\\Devicemap\\\\Serialcomm] 1231984861<br \/>\n\"Serial1\"=\"COM2\"<\/code><\/li>\n<li>Download <a href=\"http:\/\/winlink.org\/RMSExpress\">RMS Express<\/a> and unzip the download so you have the MSI.<\/li>\n<li>Run the installer:<br \/>\n<code>wine msiexec \/i RMS\\ Express\\ Setup.msi<\/code><\/li>\n<\/li>\n<li>Run Winlink Express with wine using the command:<br \/>\n<code>wine ~\/.wine\/drive_c\/RMS\\ Express\/RMS\\ Express.exe<\/code><br \/>\nWalk through the setup screens as normal. If this is your first time setting up Winlink Express, you&#8217;ll need to go to <a href=\"http:\/\/www.winlink.org\">the Winlink site<\/a> and register.<\/li>\n<li>To test the software, first pick &#8220;Telnet Winlink&#8221;, click &#8220;Open Session&#8221;, and in the window that opens, &#8220;Start&#8221;. Winlink should kick off a connection to a CMS over the internet.<\/li>\n<li>To configure the packet radio link using the TH-D74, choose &#8220;Packet Winlink&#8221; and click &#8220;Open Session&#8221;. Click &#8220;Settings&#8221;, choose &#8220;KISS&#8221; for &#8220;Packet TNC Type&#8221;, &#8220;NORMAL&#8221; for the &#8220;Packet TNC Model&#8221;, and &#8220;COM2&#8221; for the serial port. Leave the baud rate at 9600 &#8212; it shouldn&#8217;t matter over a Bluetooth serial connection. Click Update.\n<li>Back in the Session window, configure the connection type and destination node as usual. In my case for testing, I have it set to either &#8220;Direct&#8221; to KF6GPE-10 (which is in the shack upstairs), or &#8220;Digipeater&#8221; to W6SCF-10 via KF6GPE-10, W6JWS-3.<\/li>\n<\/ol>\n<p>That&#8217;s it!<\/p>\n<p>To send and receive your messages, turn on your radio and tune VFO A to your local packet frequency. Next, make sure you&#8217;re in KISS TNC mode by pressing [F][5] until you see the &#8220;KISS 12&#8221; annunciator above VFO A&#8217;s display. On Winlink Express in the Session window, click &#8220;Start&#8221;. If all goes well, Winlink Express will establish a Bluetooth connection to the TNC (You&#8217;ll see an annunciator reading &#8220;Connected Bluetooth&#8221; flash above VFO A, and the radio should key up. After that, it&#8217;s just packet radio as usual.<\/p>\n<p>If you don&#8217;t want to use Terminal to start RMS Express, you can also set up an AppleScript script to do so &#8212; see <a href=\"https:\/\/www.davidbaumgold.com\/tutorials\/wine-mac\/#making-a-dock-icon\">David Baumgold&#8217;s excellent discussion<\/a>. Start the script editor, click &#8220;New Document&#8221; and enter the following in the top half of the window that appears:<code><br \/>\ntell application \"Terminal\"<br \/>\n  do script \"\/usr\/local\/bin\/wine ~\/.wine\/drive_c\/RMS\\\\ Express\/RMS\\\\ Express.exe\"<br \/>\nend tell<\/code><br \/>\nNow click &#8220;Compile&#8221; (the last button, the one with the hammer), to be sure your script is correct. You can also try it by pressing the Run button. When you&#8217;re sure it&#8217;s correct, save it and choose &#8220;Application&#8221; as the file format. I saved it as &#8220;Winlink Express&#8221; in the default location. If you want, you can drag the resulting icon to your dock; after all, it&#8217;s an application.<\/p>\n<p>Happy portable packet radio!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This took a bit longer than I expected it to, but that&#8217;s usually the way things work when you don&#8217;t know what you&#8217;re doing. When it&#8217;s done, it works quite well &#8212; I&#8217;ve got Winlink Express running on my Macbook under High Sierra with wine &#8212; no Parallels or VMware Fusion needed! Here are the &hellip; <a href=\"https:\/\/www.lothlorien.com\/kf6gpe\/winlink-on-mac-os-x-with-a-th-d74-over-bluetooth\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Winlink on Mac OS X with a TH-D74 over Bluetooth&#8230;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,10,9],"tags":[],"class_list":["post-840","post","type-post","status-publish","format-standard","hentry","category-hamradio","category-mobile","category-programming"],"_links":{"self":[{"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/posts\/840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/comments?post=840"}],"version-history":[{"count":12,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/posts\/840\/revisions"}],"predecessor-version":[{"id":852,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/posts\/840\/revisions\/852"}],"wp:attachment":[{"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/media?parent=840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/categories?post=840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lothlorien.com\/kf6gpe\/wp-json\/wp\/v2\/tags?post=840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}