Hello Michelle,

 

As said earlier, I have build X10 units in the past (light controllers, 
sensors, X10 modem, see attached pictures). These were build with members of 
the Microchip PIC family. As controller for my Home Automation hardware, I?m 
using a program called HomeRun (http://homerun.sourceforge.net   open source, 
OSGi, Java based).

 

X10 having its shortcomings, I started looking to Zigbee hardware/firmware. I 
bought a development kit from Digi (Xbee units). With the help of the Andrew 
Rapp driver (http://code.google.com/p/xbee-api/)  I was able to communicate 
with a ?ultrasonic wind measurement? unit. A picture of the setup is included. 
I added ZCL support classes to the Rapp driver, and wrote PIC firmware to 
respond to the ZCL commands.

 

I hoped for 2 things:

 

1)      That Digi would support the Home Automation profile in the near future. 
Up till now there is no sign of this going to happen. As also ZDO support is 
minimal, it is nearly impossible to build HA profile compatible products based 
on XBee hardware. 

2)      That Richard Rogers, the developer of HomeRun, would include support 
for Zigbee (based on XBee hardware) in his software. Due to 1), this is not 
going to happen too!

 

At this moment, the hardware/firmware of TI in combination with your effort is 
much more promising than the XBee products.

 

As I?m not familiar with the TI line of products and development tools, it 
takes some time to find the best way to continue. Maybe someone can comment on 
the next statements concerning the TI offering:

 

1)      The CC2530/CC2531 controller is currently the best TI Zigbee platform 
to use.

 

2)      The dongle with the CC2531 is currently the best way to achieve a PC 
interface (?real? USB interface !!)

3)      The ZNP stack offers a flexible way to develop Zigbee hard/software. 
The easiest way is to do that is using TI controllers, but it is probably also 
possible to do that based on Microchip PIC controllers. 

4)      From TI application note (Creating 
<http://focus.ti.com/lit/wp/slyy022/slyy022.pdf>  a ZigBee? Smart Energy Device 
with the MSP430F54xx and the CC2530-ZNP) , it appears that I should buy  the  
<http://focus.ti.com/docs/toolsw/folders/print/cc2530dk.html> CC2530 
Development Kit (which includes the CC2531 based dongle) and the  
<http://focus.ti.com/docs/toolsw/folders/print/cc2530emk.html> CC2530 
Evaluation Module Kit . Costs: $299 + $99.

5)      The Stack SWRC126.zip 
(http://focus.ti.com/docs/toolsw/folders/print/z-stack.html) supports the HA 
and SE profile. The IAR EW8051 7.60 is needed to be able to change the stack, 
though I see no reason to be able to change it.

Furthermore:

Using the dongle and the Zigbee4OSGi bundle, I should be able to view/analyze 
the traffic between my XBee units. I also should be able to send ZCL commands 
to a Xbee unit (once support for the CC2530 is in place to do that).

Kind regards,

Han

 

 

Van: Michele Girolami [mailto:Michele.Girolami at isti.cnr.it] 
Verzonden: woensdag 30 maart 2011 17:41
Aan: Han Alink
CC: ZigBee 4 OSGi Developer
Onderwerp: Re: [zb4osgi Dev] Next development steps - how to share experience

 

No problem Han.

 

So now you can  start playing with ZBee4Osgi. But one more  question... maybe I 
forgot. Do you have any TI hardware?

 

Il giorno 30/mar/2011, alle ore 17.33, Han Alink ha scritto:





I finally ran step 6 and ?? SUCCESS.

I must have done something wrong during earlier runs. Sorry about having 
bothered you with this.

 

Thanks for your help so far.

 

Han

 

 

Hello,

 

Here are the log files of the steps 3, 4 and 5

 

Regards,

Han

 

Van: Michele Girolami [mailto:Michele.Girolami at isti.cnr.it] 
Verzonden: dinsdag 29 maart 2011 17:41
Aan: Han Alink
CC: dev at zb4osgi.aaloa.org
Onderwerp: Re: [zb4osgi Dev] Next development steps - how to share experience

 

Hi Han,

 

no problem. Now It's strange because I've compiled the whole project form 
stretch also removing the .m2 directory.

I'll suggest you to:

1)run mvn clean from the trunk and remove your .m2 directory (backup if 
necessary for your purposes).

2)download all the code of ZBee4OSGi in order to have a similar dir. strucure:

ZB4OSGi

            releases

            sandbox

            trunk

            website

 

 

3)go to ZB4OSGi\trunk\externals\bundles\rxtx and run the following command: mvn 
install

4)go to ZB4OSGi\trunk\externals\libraries\trove4j and type the following 
commands:

            4.1)mvn install:install-file -DpomFile=pom.xml -Dfile=trove.jar

            4.1)mvn install:install-file -DpomFile=pom.xml 
-Dfile=trove-javadocs.jar

            4.1)mvn install:install-file -DpomFile=pom.xml 
-Dfile=trove-sources.jar

 

5)go to ZB4OSGi\trunk\externals\bundles\trove4j and run the following command: 
mvn install

6)go to: ZB4OSGi\trunk and type mvn install

 

 

For your information the problem is related to the trove4j library that one of 
the bundle of ZBee4OSGi (ZigBee Dirver) is not able to find within the .m2 
local repository. 

Let me know.

 

Regards.

 

Il giorno 29/mar/2011, alle ore 17.29, Han Alink ha scritto:

 

Hello Michelle,

 

Thanks for your help and patience! But ?.

 

I followed your instructions, but still got the same error message.

I did not have the software installed in the directory ZB4OSGi\trunk but in 
ZB4OSGi (without the trunk subdirectory).

I changed that, reloaded from your repository, and again followed all the 
steps. Still got the same error message.

 

I have included the log file.

Hope I don?t take too much of your time!?

 

Kind regards,

Han

 

 

 

Van: Michele Girolami [mailto:Michele.Girolami at isti.cnr.it] 
Verzonden: dinsdag 29 maart 2011 9:30
Aan: Han Alink
CC:  <mailto:dev at zb4osgi.aaloa.org> dev at zb4osgi.aaloa.org
Onderwerp: Re: [zb4osgi Dev] Next development steps - how to share experience

 

Hi Han,

 

In order to make everything clear:

1)go to: ZB4OSGi\trunk and type mvn clean

Then:

 

2)go to your .m2 directory (usually located in your home user directory e.g. 
c:\Documents and Settings\userX\.m2 and remove manually the sub-directory 
.m2\repository\org\aal-persona

3)go to ZB4OSGi\trunk\externals\bundles\rxtx and run the following command: mvn 
install

4)go to ZB4OSGi\trunk\externals\libraries\trove4j and type the following 
commands:

            4.1)mvn install:install-file -DpomFile=pom.xml -Dfile=trove.jar

            4.1)mvn install:install-file -DpomFile=pom.xml 
-Dfile=trove-javadocs.jar

            4.1)mvn install:install-file -DpomFile=pom.xml 
-Dfile=trove-sources.jar

 

5)go to ZB4OSGi\trunk\externals\bundles\trove4j and run the following command: 
mvn install

6)go to: ZB4OSGi\trunk and type mvn install

 

In you are still not able to compile the project, I'll suggest you to:

1)backup your .m2 directory

2)empty your  .m2 directory

3)restart with the previous 6 steps (from  1 to 6)

 

Regards.

 

 

Il giorno 25/mar/2011, alle ore 19.26, Han Alink ha scritto:






Hello Michele,

 

The First 2 Maven runs finished without errors.

The last one (the main one) still gives an error.

 

I hope I don?t consume too much of your support time with this kind of problems.

Nevertheless, thanks for your help.

I included the log file.

 

Regards,

Han

 

Van: Michele Girolami [mailto:Michele.Girolami at isti.cnr.it] 
Verzonden: vrijdag 25 maart 2011 17:11
Aan: Han Alink
CC:  <mailto:dev at zb4osgi.aaloa.org> dev at zb4osgi.aaloa.org
Onderwerp: Re: [zb4osgi Dev] Next development steps - how to share experience

 

Hi Han,

 

in order to complete the procedure you need also to perform manually 2 
operations:

 

1)move to ZB4OSGi\trunk\externals\libraries\trove4j and run the following 
command: mvn install

2)move to ZB4OSGi\trunk\externals\bundles\rxtx and run the following command: 
mvn install

and...

3)move to ZB4OSGi\trunk and run mvn install

 

Regards.

 

Michele.

 

 

 

Il giorno 24/mar/2011, alle ore 15.52, Han Alink ha scritto:







Hello Michele,

 

After the update, Maven is running almost to the end I think. I get a warning 
and an error about the rxtx jar.

I again included a log file.

 

Thanks for your help so far,

 

Han

 

Van: Michele Girolami [mailto:Michele.Girolami at isti.cnr.it] 
Verzonden: donderdag 24 maart 2011 10:40
Aan: Han Alink
CC:  <mailto:dev at zb4osgi.aaloa.org> dev at zb4osgi.aaloa.org
Onderwerp: Re: [zb4osgi Dev] Next development steps - how to share experience

 

Hi Han,

 

As you probably already know  
<http://zb4osgi.aaloa.org/redmine/projects/zb4osgi/wiki/Tutorial> here you can 
find an initial  tutorial supporting the start-up phase.

Actually exist 2 different approaches in order to start-up with ZBee4OSGi:

1)From the source repository -> download the code, compile it and run it

2)From the release -> download it and lunch it

 

If you are not yet familiar with Maven  and you want to use ZBee4OSGi I would 
suggest you to adopt the 2 way,  
<http://zb4osgi.aaloa.org/redmine/attachments/download/38/zb4osgi-0.1.0.zip> 
here you can find the all-in-one package ready to be unzipped and run.

Otherwise if you want to build your own the code you have to download it and 
use maven. I suppose you' ve already downloaded the code and set-up maven tool 
(in case please refer to Maven official web page), now you should have this 
dir. structure:

ZB4OSGi

            releases

            sandbox

            trunk

            website

1)From the ZB4OSGi directory update the source code with svn up (or graphically)

2)Move to  ZB4OSGi\trunk and run the following command mvn install. I've just 
made few changes to the trunk in order to have a running configuration. 

 

Now you should be able to compile all the bundles.

 

Regards.

 

Michele.

 

Il giorno 23/mar/2011, alle ore 11.21, Han Alink ha scritto:








Hello Michele,

 

>From the TI documentation I understand that the CC2531 dongle uses the CC2530 
>chip.

TI now also offers a mini development kit ($99,-): 
http://processors.wiki.ti.com/index.php/CC2530ZDK-ZNP-MINI

 

As I want to continue to put effort in Home Automation hard- and software, I am 
going to buy this development kit, unless you think this is not the right kit.

 

I downloaded your software, but running maven generates errors. This probably 
has to do with the OSGi environment not being installed. I have to look into 
this.

I also downloaded you?re the release including the OSGi environment; this one  
is running, but lacks the dongle of course.

 

Kind regards,

Han Alink

 

Van: Michele Girolami [mailto:Michele.Girolami at isti.cnr.it] 
Verzonden: maandag 21 maart 2011 18:50
Aan: Han Alink
CC:  <mailto:dev at zb4osgi.aaloa.org> dev at zb4osgi.aaloa.org
Onderwerp: Re: [zb4osgi Dev] Next development steps - how to share experience

 

Hi Han,

 

I'm Michele and actually I'm also involved with the development activities 
related to ZBee devices.

TI offers the  <http://focus.ti.com/docs/toolsw/folders/print/cc2531emk.html> 
CC2531 USB evaluation Module Kit for about 50? dollars, we had the chance to 
obtain one copy of it for free but only for research purposes. If you have 
intention to keep developing with TI development kit it could be an option, but 
please consider that you also need the license for the compiler in order to 
build existing/custom firmware (a 30-day free license can be easily obtained). 
Our intention is to replace the old and buggy CC2480 with the new CC2531 but, 
as Francesco said, we was planning to re-start around May. In this direction we 
are opened to different USB dongle that can be "easily" integrated with the 
stack, I don't know if you have some expertise with USB ZBee dongle...By 
googling we found different USB ZBee dongles, but we don't know about the 
necessary effort to provide a running and stable replacement for CC2480.

Moreover I've read that you also have some experiences with the Rapp driver, 
ZBee4OSGi actually exploits such a library ( 
<http://zb4osgi.aaloa.org/redmine/attachments/36/ZigBee_Basedriver-_V2.pdf> 
Here you can have a perspective of all the bundles building the project, see 
slide n. 17 it is integrated within CC2480 Data Link Protocol Bundle) so if 
you've already experienced it could be a good starting point.

 

Best regards. 

 

 

Il giorno 19/mar/2011, alle ore 13.19, Han Alink ha scritto:









Hello Francesco,

 

I have been working on Home Automation (hardware) development for several years 
(as a hobby). I have mainly developed hardware based on the X10 protocol 
(sensors, light controllers, modem ?).

In 2009 I bought a XBee development kit. I used the Java based drivers form 
Andrew Rapp (http://code.google.com/p/xbee-api/) on the PC side. I studied the 
ZCL documents from the Zigbee alliance and extended the Andrew Rapp driver with 
classes for the exchange of ZCL frames. On the other side, I used a PIC based 
design to receive and react to the ZCL frames.

As I?m not a programmer, I?m afraid I?m not able to come up with  something 
that is fully compliant to the Home Automation profile. Another problem is the 
limitations of the XBee hardware platform. The hardware does hardly provide 
support for ZCL/ZDO messages; almost everything has to be handled by the PIC 
processor.

 

Recently I found your project website. I have not yet downloaded the software 
as I have a few questions. Hope you will answer them:

 

-          The hardware you use is from Texas Instruments. You are probably 
aware of the fact that on the TI website, the CC2480 is not recommended for new 
designs. What device are you recommending now?

-          Did you look into the XBee hardware?

-          Did you develop a ZCL XML format/editor?

 

Kind regards,

Han Alink

The Netherlands

_______________________________________________
Dev mailing list
 <mailto:Dev at zb4osgi.aaloa.org> Dev at zb4osgi.aaloa.org
 <http://zb4osgi.aaloa.org/mailman/listinfo/dev> 
http://zb4osgi.aaloa.org/mailman/listinfo/dev

 

 

 

<log2.txt>

 

 

 

 

<log3.txt>

 

 

 

 

<log4.txt>

 

Michele Girolami
ISTI - Area della ricerca CNR
via G. Moruzzi 1, I-56124 Pisa         Email:  <mailto:michele.girolami at 
isti.cnr.it> michele.girolami at isti.cnr.it
(entrance 20, 1st floor, room C66)

phone:        +39 050 315 2887              fax:+39 050 315 2040     




 

<step3_log.txt><step4.1_log.txt><step4.2_log.txt><step4.3_log.txt><step5_log.txt>_______________________________________________
Dev mailing list
Dev at zb4osgi.aaloa.org
http://zb4osgi.aaloa.org/mailman/listinfo/dev

 

Michele Girolami
ISTI - Area della ricerca CNR
via G. Moruzzi 1, I-56124 Pisa         Email: michele.girolami at isti.cnr.it
(entrance 20, 1st floor, room C66)

phone:        +39 050 315 2887              fax:+39 050 315 2040     




 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://zb4osgi.aaloa.org/pipermail/dev/attachments/20110331/e0e28279/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pressure_humidity_unit.jpg
Type: image/jpeg
Size: 703844 bytes
Desc: not available
URL: 
<http://zb4osgi.aaloa.org/pipermail/dev/attachments/20110331/e0e28279/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sunscreen_controller.jpg
Type: image/jpeg
Size: 18822 bytes
Desc: not available
URL: 
<http://zb4osgi.aaloa.org/pipermail/dev/attachments/20110331/e0e28279/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMAGE_002.jpg
Type: image/jpeg
Size: 72863 bytes
Desc: not available
URL: 
<http://zb4osgi.aaloa.org/pipermail/dev/attachments/20110331/e0e28279/attachment-0005.jpg>

Reply via email to