{"id":229,"date":"2018-11-06T21:24:22","date_gmt":"2018-11-06T21:24:22","guid":{"rendered":"https:\/\/www.nleby.com\/longform\/?p=229"},"modified":"2019-08-08T02:08:05","modified_gmt":"2019-08-08T02:08:05","slug":"command-for-mac-update","status":"publish","type":"post","link":"https:\/\/www.nleby.com\/longform\/2018\/11\/06\/command-for-mac-update\/","title":{"rendered":"Command: a macOS app that interfaces with the NCE usb module via RS-232"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Key Technologies: RS-232, Hex, and Cocoa (Mac)<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Command for Mac is a [native] application I built to run DCC trains on my office layout. It works by using the <a href=\"https:\/\/www.ncedcc.com\/online-store\/USB-Interface-for-Power-Cab-p38322160\">USB Interface for Power Cab<\/a> to bridge the gap from the computer to the <strong>NCE<\/strong> cab bus. The application uses the RS-232 serial interface to send hex commands to control the locomotives.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The application&#8217;s main interface can be accessed from the OS menu bar, this interface allows you to open the manage the connection, add\/remove trains, and create new throttles.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Want to develop your own application? Hex command documentation can be found <a href=\"https:\/\/ncedcc.zendesk.com\/hc\/en-us\/article_attachments\/211937243\/USBInterface_Ver_7-corrected.pdf\">here<\/a>.<\/p>\n\n\n\n<iframe style=\"width:120px; height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&#038;OneJS=1&#038;Operation=GetAdHtml&#038;MarketPlace=US&#038;source=ac&#038;ref=tf_til&#038;ad_type=product_link&#038;tracking_id=nleby-20&#038;marketplace=amazon&#038;region=US&#038;placement=B005M8GRKW&#038;asins=B005M8GRKW&#038;linkId=b571403782a9c8b30cd450309f642f0e&#038;show_border=false&#038;link_opens_in_new_window=false&#038;price_color=333333&#038;title_color=0066c0&#038;bg_color=ffffff\">\n    <\/iframe>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"NCE USB Mac App (consisting)\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/WBstjQuEO-I?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div class=\"wp-block-image wp-image-232 size-large\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/menu.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/menu-1024x576.jpg\" alt=\"\" class=\"wp-image-232\" srcset=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/menu-1024x576.jpg 1024w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/menu-300x169.jpg 300w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/menu-768x432.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Menu Bar Application.&nbsp;Tap image for larger view.<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image wp-image-231 size-large\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/edit_trains.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/edit_trains-1024x576.jpg\" alt=\"\" class=\"wp-image-231\" srcset=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/edit_trains-1024x576.jpg 1024w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/edit_trains-300x169.jpg 300w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/edit_trains-768x432.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Manage Trains Window.&nbsp;Tap image for larger view.<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image wp-image-230 size-full\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/single_throttle.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"2133\" height=\"1200\" src=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/single_throttle.jpg\" alt=\"\" class=\"wp-image-230\" srcset=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/single_throttle.jpg 2133w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/single_throttle-300x169.jpg 300w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/single_throttle-768x432.jpg 768w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/single_throttle-1024x576.jpg 1024w\" sizes=\"auto, (max-width: 2133px) 100vw, 2133px\" \/><\/a><figcaption>Single Throttle.&nbsp;Tap image for larger view.<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image wp-image-233 size-large\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/multiple_throttles.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/multiple_throttles-1024x576.jpg\" alt=\"\" class=\"wp-image-233\" srcset=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/multiple_throttles-1024x576.jpg 1024w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/multiple_throttles-300x169.jpg 300w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/11\/multiple_throttles-768x432.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Multiple Throttles.&nbsp;Tap image for larger view.<\/figcaption><\/figure><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/12\/IMG_1265-1024x768.jpg\" alt=\"\" class=\"wp-image-327\" srcset=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/12\/IMG_1265-1024x768.jpg 1024w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/12\/IMG_1265-300x225.jpg 300w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/12\/IMG_1265-768x576.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"nce dcc mac app\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/fJLNyYewlQc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"ipad\" width=\"800\" height=\"600\" src=\"https:\/\/www.youtube.com\/embed\/fkAIHIRRUzs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Key Technologies: RS-232, Hex, and Cocoa (Mac) Command for Mac is a [native] application I built to run DCC trains on my office layout. It works by using the USB&hellip;<\/p>\n<p> <a class=\"more-link\" href=\"https:\/\/www.nleby.com\/longform\/2018\/11\/06\/command-for-mac-update\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[13],"tags":[17,18,20,16,21,22,19,33],"class_list":{"0":"post-229","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-personal","7":"tag-dcc","8":"tag-ho","9":"tag-mac","10":"tag-nce","11":"tag-osx","12":"tag-serial","13":"tag-trains","14":"tag-website"},"_links":{"self":[{"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":10,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":506,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/posts\/229\/revisions\/506"}],"wp:attachment":[{"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}