{"id":102,"date":"2013-08-14T18:54:14","date_gmt":"2013-08-14T18:54:14","guid":{"rendered":"http:\/\/blog.ignoranthack.me\/?p=102"},"modified":"2014-04-19T14:45:24","modified_gmt":"2014-04-19T14:45:24","slug":"how-to-fry-a-router-in-x-1-steps-the-serial-console-complete","status":"publish","type":"post","link":"http:\/\/blog.ignoranthack.me\/?p=102","title":{"rendered":"How to fry a router in X-1 steps, The Serial Console complete"},"content":{"rendered":"<p style=\"text-align: left;\">If you saw my first <a title=\"How to fry a router, in X easy steps:  The Serial Console\" href=\"http:\/\/blog.ignoranthack.me\/?p=31\">post\u00a0<\/a> regarding my attempts to use a DLink DIR-825 with FreeBSD, you noted that I was busily trying to get the serial console working.\u00a0 I won&#8217;t go over the reasons for it in this new post, but get straight into the fun and games.<\/p>\n<p>My motivation here is to make the serial console available without ripping open the case every time there is an issue.\u00a0 FreeBSD in a OpenWRT\/DD-WRT style configuration is a very open universe right now and there will be lots of changes to come.<\/p>\n<p>For now, let&#8217;s start with the ingredient list:<\/p>\n<ol>\n<li>DLink DIR-825 rev. B1<\/li>\n<li>Soldering Iron, solder, solder braid, good tweezers, scissors, exacto-knife<\/li>\n<li><a href=\"http:\/\/osepp.com\/products\/accessories\/continuous-jumpers\/\">Jumper wire leads<\/a>, F-F<\/li>\n<li>OSEPP FTDI Breakout Board kit<\/li>\n<li>Circuit Board safe superglue<\/li>\n<\/ol>\n<p>Step 1 of this operation is to open the DIR-825, remove the main board and solder on pins to JP1 on the board.<\/p>\n<p>Once that is secure and you&#8217;ve validated that you can use your USB TTL adapter to get a serial console then you can move forward to setup the internal mounting and give yourself an external connector.<\/p>\n<p>The case is used in 2 and 3 antenna models.\u00a0 This unit leaves us the center antenna mount as a\u00a0 very convient place to secure our TTL USB adapter.\u00a0 Get your exacto-knife and cut out the black label area covering this hole.\u00a0 Then gently cut out the top half of the innner plastic ring as I have shown in this photo.<\/p>\n<p style=\"text-align: left;\"><a href=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DLink_USB_Mod_Case.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-59 aligncenter\" alt=\"DLink_USB_Mod_Case\" src=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DLink_USB_Mod_Case-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DLink_USB_Mod_Case-300x225.jpg 300w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DLink_USB_Mod_Case-1024x768.jpg 1024w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DLink_USB_Mod_Case-624x467.jpg 624w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>See how nicely the USB connector presents itself?\u00a0 Its as though we planned this out!<\/p>\n<p style=\"text-align: left;\">Next, I modified the TTL adapter itself.\u00a0 I needed to remove the jumper at the center of the adapter as it collides with the capacitor directly adjacent to the mounting point.<\/p>\n<p style=\"text-align: left;\"><a href=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-soldering.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-98 aligncenter\" alt=\"DIR825-USB-soldering\" src=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-soldering-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-soldering-300x225.jpg 300w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-soldering-1024x768.jpg 1024w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-soldering-624x467.jpg 624w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>I then was able to solder a very small length of wire to short the 3.3v selector permanently.\u00a0 You&#8217;ll need a steady hand and the tweezers to pull out the pins and insert the wire.<a href=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-33v.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-92 aligncenter\" alt=\"DIR825-USB-33v\" src=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-33v-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-33v-300x225.jpg 300w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-33v-1024x768.jpg 1024w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-33v-624x467.jpg 624w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">You&#8217;ll note that I&#8217;ve removed the pin header that comes with the adapter.\u00a0 This was accomplished with a sharp pair of scissors and then using the soldering iron to extract the remainder of the pins with judicious use of tweezers.<\/p>\n<p style=\"text-align: left;\">Once that was done, I soldered on individual pins for TX, RX and ground. Note that I&#8217;ve bent the pins at a 45 degree angle.\u00a0 This will avoid any issues with the pins making contact with the mainboard.<\/p>\n<p style=\"text-align: left;\">Now that you have all the pieces ready to go, its time to break out the superglue and mount the thing.\u00a0 When choosing a glue, you&#8217;ll need to get one that is safe for PCB and plasitc in general, your local electronics and hobby shop can direct you to the proper stuffs.<\/p>\n<p style=\"text-align: left;\">I mounted the TTL adapter upside down so that the connector can reach the opening on the case and there are two lower points of contact for the glue to set correctly.<a href=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-mount.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-97 aligncenter\" alt=\"DIR825-USB-mount\" src=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-mount-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-mount-300x225.jpg 300w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-mount-1024x768.jpg 1024w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-mount-624x467.jpg 624w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">I applied glue to the two corners next to the USB header, flipped it over and brought it into firm contact with the antenna mount.\u00a0 After about 1 minute, I released pressure and applied a line of glue across the surface of the TTL adapter such that it sealed against the case of the router.<\/p>\n<p style=\"text-align: left;\"><a href=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-GLUE2.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-95 aligncenter\" alt=\"DIR825-USB-GLUE2\" src=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-GLUE2-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-GLUE2-300x225.jpg 300w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-GLUE2-1024x768.jpg 1024w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-GLUE2-624x467.jpg 624w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>Now &#8230; WALK AWAY for at least 6 hours.\u00a0 If you&#8217;re using the right kind of glue, there&#8217;s some science happening here and you need to let the glue\/plastic cure to get a secure mount.<a href=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-FINAL.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-93 aligncenter\" alt=\"DIR825-USB-FINAL\" src=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-FINAL-300x225.jpg\" width=\"300\" height=\"225\" srcset=\"http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-FINAL-300x225.jpg 300w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-FINAL-1024x768.jpg 1024w, http:\/\/blog.ignoranthack.me\/wp-content\/uploads\/2013\/08\/DIR825-USB-FINAL-624x467.jpg 624w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">Wire up your TX, RX and ground leads, reattach the case housing and connect up your new USB serial interface to a PC.\u00a0 On FreeBSD, you should see a new serial port appear.<\/p>\n<blockquote>\n<p style=\"text-align: left;\"><strong>ugen5.2: &lt;FTDI&gt; at usbus5<\/strong><br \/>\n<strong>uftdio0: &lt;FT232R USB UART&gt; on usbus5<\/strong><\/p>\n<\/blockquote>\n<p style=\"text-align: left;\">Go ahead, open it with your handy, dandy comm utility, cu:<\/p>\n<blockquote>\n<p style=\"text-align: left;\"><strong>cu -l \/dev\/ttyU0 -s 115200<\/strong><\/p>\n<\/blockquote>\n<p style=\"text-align: left;\">If you&#8217;ve done everything right, congrats, you&#8217;ll now see the embedded linux distribution boot up.\u00a0 You are now at <em><strong>Step 0<\/strong> <\/em>getting your FreeBSD based home router running.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you saw my first post\u00a0 regarding my attempts to use a DLink DIR-825 with FreeBSD, you noted that I was busily trying to get the serial console working.\u00a0 I won&#8217;t go over the reasons for it in this new post, but get straight into the fun and games. My motivation here is to make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_share_on_mastodon":"0"},"categories":[3,2],"tags":[],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/posts\/102"}],"collection":[{"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=102"}],"version-history":[{"count":9,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":181,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions\/181"}],"wp:attachment":[{"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ignoranthack.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}