{"id":2984,"date":"2019-06-29T05:48:27","date_gmt":"2019-06-29T04:48:27","guid":{"rendered":"https:\/\/kudzia.eu\/b\/?p=2984"},"modified":"2019-08-12T12:52:19","modified_gmt":"2019-08-12T11:52:19","slug":"raspberry-pi-as-a-serial-console-terminal","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2019\/06\/raspberry-pi-as-a-serial-console-terminal\/","title":{"rendered":"raspberry pi as a serial console terminal"},"content":{"rendered":"<p>i&#8217;ve bricked a cheap home router. i&#8217;ve installed a beta of dd-wrt firmware which did not work. raspberry pi gave me serial connection to it.<\/p>\n<p><!--more--><\/p>\n<p>i knew it&#8217;s possible to rescue the router by using built-in serial port and fetching new firmware via tftp. there was just one problem &#8211; my pc did not have a serial port, and even if it had one &#8211; it would be RS232, while router in question had 3.3V level serial. so i&#8217;d need signal level converter like max232&#8230; or not &#8211; raspberry pi has programmable pins that can be used as a serial port, those work already on 3.3V level. great!<\/p>\n<p>what i had to change on my raspberry pi 3b running raspbian:<\/p>\n<ul>\n<li>\/boot\/config.txt &#8211; added <i>enable_uart=1<\/i><\/li>\n<li>\/boot\/cmdline.txt &#8211; removed <i>console=ttyAMA0,115200<\/i><\/li>\n<li>run: <i>systemctl stop serial-getty@ttyS0.service; systemctl disable serial-getty@ttyS0.service<\/i><\/li>\n<li>and reboot<\/li>\n<\/ul>\n<p>i&#8217;ve compiled steps above from different sites, only afterwards i saw that <a href=\"https:\/\/spellfoundry.com\/2016\/05\/29\/configuring-gpio-serial-port-raspbian-jessie-including-pi-3\/\">this page<\/a> describes it in nearly the same way.<\/p>\n<p>after that i&#8217;ve installed minicom, run it, configured to use \/dev\/serial0, 115200 8N1 [ i knew it was the standard used  by the router to communicate ]. and that&#8217;s it &#8211; after powering on the router i saw its bootloader in minicom. <a href=\"https:\/\/www.myopenrouter.com\/article\/how-debrick-your-wnr3500lv2-using-windows-and-usb-ttl-cable\">here<\/a>&#8216;s the process description.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>i&#8217;ve bricked a cheap home router. i&#8217;ve installed a beta of dd-wrt firmware which did not work. raspberry pi gave me serial connection to it.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-2984","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=2984"}],"version-history":[{"count":3,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2984\/revisions"}],"predecessor-version":[{"id":3002,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2984\/revisions\/3002"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=2984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=2984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=2984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}