Posted by Cliff Brake on 2009-10-21 |
Recently when debugging a device connected to a rs485 bus, I needed a simple application to dump the raw data coming over the rs485 bus. Minicom does all kinds of weird terminal stuff, plus it will not display binary data, so that was out. While looking for serial analyzer programs for Linux, and pondering writing [...]
Posted by Cliff Brake on 2009-01-09 |
The Python file object read() function acts a little differently than the standard read() found in C. This article describes some of these differences and how to optimize reads for general continuous data streams such as reading data from a collection device through a pipe. Python read() The Python read function seems to be optimized [...]
Posted by Cliff Brake on |
Interfacing with a RS232 serial device is a common task when using Python in embedded applications. The easiest way to get python talking to serial ports is use the pyserial project found at http://pyserial.sourceforge.net/. This module works on most platforms and is straightforward to use (see examples on project web site). However, getting the read [...]
Posted by Cliff Brake on |
As devices are increasingly more networked, an embedded web server is becoming a standard way for users to interact with and configure an embedded device using a standard web browser. As an example, most pieces of networking equipment (such as routers and wireless access points) are configured this way. There are many ways to implement [...]