{"id":1926,"date":"2017-11-05T12:35:10","date_gmt":"2017-11-05T12:35:10","guid":{"rendered":"http:\/\/www.cyber-cottage.eu\/?p=1926"},"modified":"2018-11-29T01:30:25","modified_gmt":"2018-11-29T01:30:25","slug":"connecting-to-serial-console-ports-with-macs","status":"publish","type":"post","link":"https:\/\/www.cyber-cottage.co.uk\/?p=1926","title":{"rendered":"Connecting to Serial console ports with Macs"},"content":{"rendered":"<p>Many devices and servers still require connection to them with console cables. Sangoma IPPBX and SBCs for example.<br \/>\nI will cover here how to connect to then with a Mac as they do not have a serial port.<\/p>\n<p>First you will need a USB serial console cable. These can be purchased cheaply from Amazon or ebay.<br \/>\nFor example the &#8220;KUMEED FTDI RS232 USB to RJ45 Serial for Cisco Console Rollover Cable for Cisco Routers&#8221; costs \u00a310.99 inc delivery and works with Windows and Macs<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1927\" data-permalink=\"https:\/\/www.cyber-cottage.co.uk\/?attachment_id=1927\" data-orig-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2017\/11\/usbtoserial.jpeg?fit=300%2C300&amp;ssl=1\" data-orig-size=\"300,300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"usbtoserial\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2017\/11\/usbtoserial.jpeg?fit=300%2C300&amp;ssl=1\" class=\"aligncenter wp-image-1927\" src=\"https:\/\/i0.wp.com\/www.cyber-cottage.eu\/wp-content\/uploads\/2017\/11\/usbtoserial.jpeg?resize=180%2C180\" alt=\"\" width=\"180\" height=\"180\" srcset=\"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2017\/11\/usbtoserial.jpeg?w=300&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2017\/11\/usbtoserial.jpeg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2017\/11\/usbtoserial.jpeg?resize=100%2C100&amp;ssl=1 100w, https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2017\/11\/usbtoserial.jpeg?resize=50%2C50&amp;ssl=1 50w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/p>\n<p>To connect to a console port you need a few bits of information, The port speed, in the case of Sangoma SBCs the is 115200. also you need the device address.<\/p>\n<p>To get teh device address open a terminal window and type:<\/p>\n<p class=\"p1\"><strong><span class=\"s1\">ls \/dev\/*usb*<\/span><\/strong><\/p>\n<p>you will be returned something like:<\/p>\n<p class=\"p1\"><span class=\"s1\">\/dev\/cu.usbserial-DN01YED6 \/dev\/tty.usbserial-DN01YED6<\/span><\/p>\n<p>so now to connect to the console port you need to enter:<\/p>\n<p class=\"p1\"><strong><span class=\"s1\">screen \/dev\/tty.usbserial-DN01YED6<span class=\"Apple-converted-space\">\u00a0 <\/span>115200<\/span><\/strong><\/p>\n<p>you should now be connected, and can interact as if on a ssh session.<\/p>\n<p>to disconnect is not as simple as just closing the terminal window, as a screen session will still be running. to exit a screen session enter the following key combination.<\/p>\n<p><strong>ctrl a \\\u00a0<\/strong><\/p>\n<p>If you do close a terminal you can see if any sessions are active by opening a new terminal and entering:<\/p>\n<p><strong><span class=\"s1\">screen -list<\/span><\/strong><\/p>\n<p>Something like below will be returned if a session is active.<\/p>\n<p><em><span class=\"s1\">There is a screen on:<\/span><\/em><\/p>\n<p><em>5177.ttys000.Ians-MacBook-2 (Detached)<\/em><\/p>\n<p><em><span class=\"s1\">1 Socket in \/var\/folders\/bl\/7k0f_2695njbsqwx762kr_380000gn\/T\/.screen.<\/span><\/em><\/p>\n<p>to reconnect type<\/p>\n<p><strong>screen -r<\/strong><\/p>\n<p>and you should reconnect.<\/p>\n<p>then exit as normal with <strong>ctrl a \\<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many devices and servers still require connection to them with console cables. Sangoma IPPBX and SBCs for example. I will cover here how to connect to then with a Mac as they do not have a serial port. First you will need a USB serial console cable. These can be purchased cheaply from Amazon or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1927,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[11],"tags":[148,40,147,117,73,76],"class_list":["post-1926","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-console","tag-freepbx","tag-rs232","tag-sangoma","tag-support","tag-voip"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.cyber-cottage.co.uk\/wp-content\/uploads\/2017\/11\/usbtoserial.jpeg?fit=300%2C300&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p5daZy-v4","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1926"}],"version-history":[{"count":5,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1926\/revisions"}],"predecessor-version":[{"id":2127,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1926\/revisions\/2127"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=\/wp\/v2\/media\/1927"}],"wp:attachment":[{"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyber-cottage.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}