Pages: [1]   Go Down
Author Topic: Problems with x10 after upgrade to Arduino 1.0.1  (Read 1702 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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>
#else
#include <WProgram.h>
#endif
« Last Edit: June 04, 2012, 04:31:30 am by ggodart » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: