{"id":39,"date":"2016-05-10T11:07:38","date_gmt":"2016-05-10T03:07:38","guid":{"rendered":"http:\/\/www.rxxxxx.net\/wordpress\/?p=39"},"modified":"2016-05-10T11:34:45","modified_gmt":"2016-05-10T03:34:45","slug":"octoprint-unhandled-communication-error","status":"publish","type":"post","link":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/2016\/05\/10\/octoprint-unhandled-communication-error\/","title":{"rendered":"OctoPrint\u8fde\u63a5\u6253\u5370\u673a\u65f6\u63d0\u793a\u201cUnhandled communication error\u201d"},"content":{"rendered":"<p>\u6309\u7167<a href=\"https:\/\/github.com\/foosel\/OctoPrint\/wiki\/Setup-on-a-Raspberry-Pi-running-Raspbian\">https:\/\/github.com\/foosel\/OctoPrint\/wiki\/Setup-on-a-Raspberry-Pi-running-Raspbian<\/a>\u7684\u63d0\u793a\u914d\u7f6e\u597dOctoPrint\uff0c\u5e76\u6309\u7167\u6807\u51c6\u7684\u6811\u8393\u6d3eGPIO\u5b9a\u4e49\u7528\u4e32\u53e3\u8fde\u63a5\u6253\u5370\u673a\u63a7\u5236\u677f\u548c\u6811\u8393\u6d3e\u4e4b\u540e\uff0c\u8bbf\u95eeWeb\u7ba1\u7406\u754c\u9762\uff0c\u70b9connect\uff0c\u663e\u793a<\/p>\n<h4 class=\"ui-pnotify-title\">Unhandled communication error<\/h4>\n<div class=\"ui-pnotify-text\">The was an unhandled error while talking to the printer. Due to that OctoPrint disconnected. Error: Failed to autodetect serial port, please set it manually.<\/div>\n<div class=\"ui-pnotify-text\"><\/div>\n<blockquote>\n<div class=\"ui-pnotify-text\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-41\" src=\"http:\/\/www.rxxxxx.net\/wordpress\/wp-content\/uploads\/2016\/05\/\u6355\u83b7-300x147.png\" alt=\"\u6355\u83b7\" width=\"300\" height=\"147\" \/><\/div>\n<\/blockquote>\n<div class=\"ui-pnotify-text\"><\/div>\n<div class=\"ui-pnotify-text\"><\/div>\n<div class=\"ui-pnotify-text\">\u539f\u56e0\u662f\u6811\u8393\u6d3eGPIO\u4e0a\u7684\u4e32\u53e3\u9ed8\u8ba4\u662f\u7528\u6765SSH\u7684\uff08\u4e5f\u6709\u53ef\u80fd\u662f\u6211\u4e4b\u524d\u4e3a\u4e86\u7528SSH\u6539\u4e86\u914d\u7f6e\uff09\uff0c\u6240\u4ee5\u9700\u8981\u518d\u6539\u56de\u6765\u3002<\/div>\n<blockquote>\n<div class=\"ui-pnotify-text\">\u00a0sudo\u00a0nano\u00a0\/boot\/cmdline.txt<\/div>\n<\/blockquote>\n<p>\u539f\u6587\u4ef6\u5e94\u8be5\u7c7b\u4f3c\u8fd9\u6837<\/p>\n<blockquote><p>dwc_otg.lpm_enable=0\u00a0<del><em>console=ttyAMA0,115200 kgdboc=ttyAMA0,115200<\/em><\/del>\u00a0console=tty1 root=\/dev\/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait<\/p><\/blockquote>\n<p>\u5c06\u659c\u4f53\u90e8\u5206\u5220\u9664\uff0c\u6709\u53ef\u80fd\u659c\u4f53\u90e8\u5206\u4e0d\u5b8c\u5168\u4e00\u6837\uff0c\u6ca1\u5173\u7cfb\uff0c\u53ea\u8981\u6700\u540e\u662f\u5982\u4e0b\u5185\u5bb9\u5c31\u884c<\/p>\n<blockquote><p>dwc_otg.lpm_enable=0 console=tty1 root=\/dev\/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait<\/p><\/blockquote>\n<p>\u7136\u540e\u7f16\u8f91\/etc\/inittab<\/p>\n<blockquote><p>sudo\u00a0nano\u00a0\/etc\/inittab<\/p><\/blockquote>\n<p>\u6211\u7684\u6811\u8393\u6d3e\u4e0a\u8fd9\u4e2a\u6587\u4ef6\u662f\u7a7a\u7684\uff0c\u6240\u4ee5\u6ca1\u505a\u4ec0\u4e48\u6539\u52a8\uff0c\u6709\u7684\u53ef\u80fd\u9700\u8981\u6ce8\u91ca\u6389\u6700\u540e\u4e00\u884c<\/p>\n<blockquote><p>#T0:23:respawn:\/sbin\/getty -L ttyAMA0 115200 vt100<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u7136\u540e\u91cd\u542f\uff0c\u542f\u52a8OctoPrint\uff0c\u8fdb\u5165web\u7ba1\u7406\u9875\u9762\uff0c\u70b9\u53f3\u4e0a\u89d2\u7684\u201cSettings\u201d\uff0c\u8fdb\u5165\u8bbe\u7f6e\uff0c\u6211\u4eec\u8981\u624b\u52a8\u52a0\u5165\u9ed8\u8ba4\u7684\u4e32\u53e3<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-45\" src=\"http:\/\/www.rxxxxx.net\/wordpress\/wp-content\/uploads\/2016\/05\/a-1-300x72.png\" alt=\"a\" width=\"504\" height=\"121\" srcset=\"http:\/\/www.rxxxxx.net\/wordpress\/wp-content\/uploads\/2016\/05\/a-1-300x72.png 300w, http:\/\/www.rxxxxx.net\/wordpress\/wp-content\/uploads\/2016\/05\/a-1-676x162.png 676w, http:\/\/www.rxxxxx.net\/wordpress\/wp-content\/uploads\/2016\/05\/a-1.png 685w\" sizes=\"(max-width: 504px) 100vw, 504px\" \/><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u5728<label class=\"control-label\" for=\"settings-serialAdditionalPorts\">Additional serial ports\u6846\u91cc\u8f93\u5165\/dev\/ttyAMA0\uff0c\u7136\u540esave<\/label>\uff0cConnection\u6846\u91cc\u5c31\u6709\u9ed8\u8ba4\u4e32\u53e3\u7684\u9009\u9879\u4e86<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-43\" src=\"http:\/\/www.rxxxxx.net\/wordpress\/wp-content\/uploads\/2016\/05\/2016-05-10-2-259x300.png\" alt=\"2016-05-10 (2)\" width=\"259\" height=\"300\" srcset=\"http:\/\/www.rxxxxx.net\/wordpress\/wp-content\/uploads\/2016\/05\/2016-05-10-2-259x300.png 259w, http:\/\/www.rxxxxx.net\/wordpress\/wp-content\/uploads\/2016\/05\/2016-05-10-2.png 306w\" sizes=\"(max-width: 259px) 100vw, 259px\" \/><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u9009\u62e9\u6b63\u786e\u7684\u4e32\u53e3\u53f7\u548c\u6ce2\u7279\u7387\uff0c\u5c31\u53ef\u4ee5\u8fde\u63a5\u6253\u5370\u673a\u5f00\u59cb\u6253\u5370\u5566<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u53c2\u8003\uff1a<\/p>\n<p><a href=\"http:\/\/blog.csdn.net\/yangqicong11\/article\/details\/26571787\">http:\/\/blog.csdn.net\/yangqicong11\/article\/details\/26571787<\/a><\/p>\n<p><a href=\"http:\/\/blog.csdn.net\/xukai871105\/article\/details\/22713925\">http:\/\/blog.csdn.net\/xukai871105\/article\/details\/22713925<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6309\u7167https:\/\/github.com\/foosel\/OctoPrint\/wiki\/Setup-on-a-R [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[5,4],"_links":{"self":[{"href":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/39"}],"collection":[{"href":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":5,"href":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":52,"href":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/39\/revisions\/52"}],"wp:attachment":[{"href":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.rxxxxx.net\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}