LScreamer /

Filename Size Date modified Message
53 B
44 B
4.4 KB

LScreamer and LScreamer2217

This program started as a port of Screamer V2.0 produced by which allows you to wirelessly download AVR firmware. What makes it special, is that the bootloader and python script can handle broken and corrupted frames.

LScreamer2217 supports RFC2217, which basically allows you to communicate with serial ports on different computers, over the network. This means that if you need to update the firmware on your AVR sprinkler control system, all you need is to connect that AVR to a computer on your network, and run the script provided from the PySerial project at

Overview - LScreamer

To use LScreamer, you'll need to reflash the bootloader on your AVR. Currently LScreamer supports ATMEGA168, ATMEGA328, and ATMEGA1280 AVR's. A USBasp ISP programmer can be had on ebay for less than $4.

To program it in Linux, I used the following command (for an ATMEGA168 Diecimila, 16MHz) <Be sure to look up your chip before trusting this>:

sudo avrdude -p m168 -c usbasp -U flash:w:Wireless_Bootloader_ATmega168.hex -U lfuse:w:0xff:m -U hfuse:w:0xdd:m -U efuse:w:0x00:m


To use LScreamer in RFC2217 mode, you'll need to run the rfc2217 on the system with the AVR connected to the serial port, and this script with the -n flag. This was tested in Debian Wheezy Linux using Python 2.7.3 and PySerial 2.5-2.1.

On Server you'd run ( python /dev/ttyUSB0

On the remote dev machine you'd run: python -n -p ATMEGA168 -i rfc2217:// ~/filename.hex

If there's an error in the, you'll need to close that terminal, since I'm not quite sure how to get it to properly recognize CTRL+C, but once you get it setup, you won't have to worry.

I'd suggest checking that you can communicate with the remote server using

One side effect of using RFC2217 is that the hidden characters typically used in bootloaders, can't be used, so now you'll see '?' when its ready to bootload, which can be useful in debugging this.

Raspberry Pi Serial Host

With the Raspbian image, I had no problem running the rfc2217 server, and flashing my ATMEGA168 hexfile over the network.

PogoPlug E02 Serial Host

With running the latest Arch Linux Arm community version, I ran into the following problem:

[root@pogoplug1 ~]# python /dev/ttyUSB0 Traceback (most recent call last): File "", line 14, in <module> import serial.rfc2217 File "/usr/lib/python2.7/site-packages/serial/", line 67, in <module> import queue

To solve it, I changed the effected module, replacing (import queue), with (import Queue):

[root@pogoplug1 ~]# vim /usr/lib/python2.7/site-packages/serial/

I've filed a bug in the ArchLinux bug tracker, so I imagine it will eventually be fixed.

Development Environment

This set of programs was developed in Crunchbang Linux (Debian 7 stable, openbox, tint2). To program the Arduino, I used Arduino-mk in combination with my Lscreamer python script. LScreamer lets you flash over unreliable networks (wireless, wifi, ethernet). I now run this development environment within a VirtualBox VM, allowing me to preserve my precise development environment effortlessly.




My Blog:



RFC2217 Inspiration: