Go Down

Topic: Problems with x10 after upgrade to Arduino 1.0.1 (Read 2532 times) previous topic - next topic


Jun 02, 2012, 09:16 am Last Edit: Jun 04, 2012, 11:31 am by ggodart Reason: 1
Since upgrading from Arduino 1.0 to Arduino 1.0.1 the x10ex and standard X10 libraries have stopped working.  
The example sketches X10_Serial from x10ex and X10_receive from the standard library will neither send nor receive with 1.0.1.  

I needed to change WProgram.h to arduino.h in the library to make it compile, otherwise the sketch is unchanged.  

#if ARDUINO >= 100
#include <Arduino.h>
#include <WProgram.h>


I've done a bit more digging and found that that the standard X10 Library also stops working when compiled with 1.0.1 but is OK with alpha 22 and 1.0.


I've been in touch with Tom Igoe who wrote the original X10 receive code.  He has now modified it to work with 1.0.1 (arduino.h and wire library mods), it compiles but unfortunately it doesn't work for me. I live in the UK (50Hz) and he is in 60Hz land and doesn't have any X10 kit to test it with - can anyone help?
The new code is at https://github.com/tigoe/x10

Meanwhile I'm trying other routes.
X10ex from http://load-8-1.blogspot.com/2010_06_01_archive.html also works OK with 0.22 but fails with 1.0.1.  It looks like a timing issue as the commands are received by the arduino, indicating the interrupt is OK but they are being interpreted with the wrong house code and value. I've emailed the author and am waiting a reply.


Good news!

Thomas Mittet has now fixed his excellent X10ex library which can be found at http://code.google.com/p/arduino-x10/downloads/list

The problem was caused by changes to the Serial communications introduced with Arduino 1.0, especially the behavior of the "Serial.flush()" command.

As I write this I dont know if the other X10 libraries have been fixed.

Go Up