Simple Serial Monitor Script for Raspberry PI

/ november 20, 2014/ IoT News&Updates/ 0 comments

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)

import serial
import sys

ser = serial.Serial('/dev/ttyAMA0', 115200)

f = open('esp.log','w')
while 1:

Be aware that you will have to enable serial input/out for Raspberry Pi (disable console output).

Leave a Comment

E-postadressen publiceras inte.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>