{"id":1072,"date":"2014-11-20T20:55:11","date_gmt":"2014-11-20T20:55:11","guid":{"rendered":"http:\/\/evosec.eu\/?p=1072"},"modified":"2014-12-15T19:13:50","modified_gmt":"2014-12-15T19:13:50","slug":"simple-serial-monitor-script-for-raspberry-pi","status":"publish","type":"post","link":"https:\/\/evosec.eu\/ru\/simple-serial-monitor-script-for-raspberry-pi\/","title":{"rendered":"Simple Serial Monitor Script for Raspberry PI"},"content":{"rendered":"<p>Since we started prototyping with our ESP8266EX modules, we found that the simplest way to control\/debug is using a Raspberry PI (IO Voltage compatible with ESP8266EX).<\/p>\n<p>Since the module outputs serial data (via ESP_DBG statement), you can monitor it using a simple python script (that logs the data too)<\/p>\n<p><code lang=\"python\"><br \/>\n#!\/usr\/bin\/python2.7<br \/>\nimport\u00a0serial<br \/>\nimport\u00a0sys<\/p>\n<p>ser\u00a0=\u00a0serial.Serial('\/dev\/ttyAMA0',\u00a0115200)<\/p>\n<p>f\u00a0=\u00a0open('esp.log','w')<br \/>\nwhile\u00a01:<br \/>\n\u00a0<!--DVFMTSC-->\u00a0\u00a0x=ser.read()<br \/>\n\u00a0<!--DVFMTSC-->\u00a0\u00a0sys.stdout.write(x)<br \/>\n\u00a0<!--DVFMTSC-->\u00a0\u00a0sys.stdout.flush<br \/>\n\u00a0<!--DVFMTSC-->\u00a0\u00a0f.write(x)<br \/>\n<\/code><\/p>\n<p>Be aware that you will have to enable serial input\/out for Raspberry Pi (disable console output).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since we started prototyping with our ESP8266EX modules, we found that the simplest way to control\/debug is using a Raspberry PI (IO Voltage compatible with ESP8266EX). Since the module outputs serial data (via ESP_DBG statement), you can monitor it using a simple python script (that logs the data too) #!\/usr\/bin\/python2.7 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[98],"tags":[85,88,89],"class_list":["post-1072","post","type-post","status-publish","format-standard","hentry","category-iot-newsupdates","tag-espressif","tag-python","tag-raspberry-pi"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"ru","enabled_languages":["en","da","de","es","fi","fr","it","hu","nl","no","pl","pt","ru","sv"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"da":{"title":false,"content":false,"excerpt":false},"de":{"title":false,"content":false,"excerpt":false},"es":{"title":false,"content":false,"excerpt":false},"fi":{"title":false,"content":false,"excerpt":false},"fr":{"title":false,"content":false,"excerpt":false},"it":{"title":false,"content":false,"excerpt":false},"hu":{"title":false,"content":false,"excerpt":false},"nl":{"title":false,"content":false,"excerpt":false},"no":{"title":false,"content":false,"excerpt":false},"pl":{"title":false,"content":false,"excerpt":false},"pt":{"title":false,"content":false,"excerpt":false},"ru":{"title":false,"content":false,"excerpt":false},"sv":{"title":false,"content":false,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/evosec.eu\/ru\/wp-json\/wp\/v2\/posts\/1072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evosec.eu\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evosec.eu\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evosec.eu\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/evosec.eu\/ru\/wp-json\/wp\/v2\/comments?post=1072"}],"version-history":[{"count":6,"href":"https:\/\/evosec.eu\/ru\/wp-json\/wp\/v2\/posts\/1072\/revisions"}],"predecessor-version":[{"id":1100,"href":"https:\/\/evosec.eu\/ru\/wp-json\/wp\/v2\/posts\/1072\/revisions\/1100"}],"wp:attachment":[{"href":"https:\/\/evosec.eu\/ru\/wp-json\/wp\/v2\/media?parent=1072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evosec.eu\/ru\/wp-json\/wp\/v2\/categories?post=1072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evosec.eu\/ru\/wp-json\/wp\/v2\/tags?post=1072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}