[zb4osgi-changeset] [scm] ZigBee 4 OSGi repository change: r467 - in /projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api: ./ .settings/ src/ src/main/ src/main/java/ src/main/java/it/ src/main/java/it/cnr/ src/main/java/it/cnr/isti/ src/main/java/it/cnr/isti/zigbee/ src/main/java/it/cnr/isti/zigbee/dongle/ src/main/java/it/cnr/isti/zigbee/dongle/api/ src/main/resources/ src/test/ src/test/java/ src/test/resources/
scm-notify at zb4osgi.aaloa.org
scm-notify at zb4osgi.aaloa.org
Mon Sep 24 17:38:32 CEST 2012
Author: manlio.bacco
Date: Mon Sep 24 17:38:32 2012
New Revision: 467
Log:
initial project sharing
Added:
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.classpath (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.project (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/org.eclipse.jdt.core.prefs (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/org.eclipse.m2e.core.prefs (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/LICENSE
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/LICENSE.ZigBee
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/NOTICE
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/pom.xml (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/AFMessageListner.java (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/AnnunceListner.java (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/ConfigurationProperties.java (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/DriverStatus.java (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/NetworkMode.java (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/SimpleDriver.java (with props)
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/resources/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/test/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/test/java/
projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/test/resources/
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.classpath
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.classpath (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.classpath Mon Sep 24 17:38:32 2012
@@ -1,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes" path="src/main/java"/>
+ <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.classpath
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.project
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.project (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.project Mon Sep 24 17:38:32 2012
@@ -1,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.aaloa.zb4osgi.zigbee.dongle.api</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
+ </natures>
+</projectDescription>
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.project
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/org.eclipse.jdt.core.prefs
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/org.eclipse.jdt.core.prefs (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/org.eclipse.jdt.core.prefs Mon Sep 24 17:38:32 2012
@@ -1,0 +1,5 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/org.eclipse.jdt.core.prefs
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/org.eclipse.m2e.core.prefs
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/org.eclipse.m2e.core.prefs (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/org.eclipse.m2e.core.prefs Mon Sep 24 17:38:32 2012
@@ -1,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/.settings/org.eclipse.m2e.core.prefs
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/LICENSE
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/LICENSE (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/LICENSE Mon Sep 24 17:38:32 2012
@@ -1,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/LICENSE.ZigBee
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/LICENSE.ZigBee (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/LICENSE.ZigBee Mon Sep 24 17:38:32 2012
@@ -1,0 +1,37 @@
+The ZigBee Specification is available to individuals, companies and institutions free of
+charge for all non-commercial purposes (including university research, technical
+evaluation, and development of non-commercial software, tools, or documentation). No
+part of this specification may be used in development of a product for sale without
+becoming a member of ZigBee Alliance.
+
+Copyright © ZigBee Alliance, Inc. (2007). All Rights Reserved. The information within this
+document is the property of the ZigBee Alliance and its use and disclosure are restricted.
+
+Elements of ZigBee Alliance specifications may be subject to third party intellectual
+property rights, including without limitation, patent, copyright or trademark rights (such a
+third party may or may not be a member of ZigBee). ZigBee is not responsible and shall not
+be held responsible in any manner for identifying or failing to identify any or all such third
+party intellectual property rights.
+
+This document and the information contained herein are provided on an ?AS IS? basis and
+ZigBee DISCLAIMS ALL WARRANTIES EXPRESS OR IMPLIED, INCLUDING BUT NOT
+LIMITED TO (A) ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN
+WILL NOT INFRINGE ANY RIGHTS OF THIRD PARTIES (INCLUDING WITHOUT
+LIMITATION ANY INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENT,
+COPYRIGHT OR TRADEMARK RIGHTS) OR (B) ANY IMPLIED WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT.
+IN NO EVENT WILL ZIGBEE BE LIABLE FOR ANY LOSS OF
+PROFITS, LOSS OF BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF
+BUSINESS, OR FOR ANY OTHER DIRECT, INDIRECT, SPECIAL OR EXEMPLARY,
+INCIDENTIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND, IN
+CONTRACT OR IN TORT, IN CONNECTION WITH THIS DOCUMENT OR THE
+INFORMATION CONTAINED HEREIN, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH LOSS OR DAMAGE. All Company, brand and product names may be trademarks
+that are the sole property of their respective owners.
+
+The above notice and this paragraph must be included on all copies of this document that
+are made.
+
+ZigBee Alliance, Inc.
+2400 Camino Ramon, Suite 375
+San Ramon, CA 94583
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/NOTICE
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/NOTICE (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/NOTICE Mon Sep 24 17:38:32 2012
@@ -1,0 +1,43 @@
+ZigBee Interface Controller API
+
+Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+Institute of Information Science and Technologies of the
+Italian National Research Council
+
+I. Included Software
+
+This does not include any software developed by 3rd parties
+
+
+II. Used Software
+
+This product uses software developed at
+The Codehaus (http://www.codehaus.org)
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+The OPS4J (http://www.ops4j.org)
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+The OSGi Alliance (http://www.osgi.org/).
+Copyright 2006-2009 The OSGi Alliance.
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+The Apache Software Foundation (http://www.apache.org/).
+Licensed under the Apache License 2.0.
+
+
+III. Specification used
+
+Part of this software is based on the specification
+provided by The ZigBee Alliance (http://www.zigbee.org)
+Licensed under ZigBee specific license for non-member
+of the ZigBee Allinace (see LICENSE.ZigBee file )
+
+
+IV. License Summary
+
+- Apache License 2.0
+- ZigBee Non-Member License
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/pom.xml
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/pom.xml (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/pom.xml Mon Sep 24 17:38:32 2012
@@ -1,0 +1,148 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.aaloa.zb4osgi</groupId>
+ <artifactId>org.aaloa.zb4osgi.pom</artifactId>
+ <version>9-SNAPSHOT</version>
+ <relativePath>../pom/pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.aaloa.zb4osgi</groupId>
+ <artifactId>org.aaloa.zb4osgi.zigbee.dongle.api</artifactId>
+ <version>0.7.0-SNAPSHOT</version>
+ <packaging>bundle</packaging>
+
+ <name>ZigBee Interface Controller API</name>
+ <url>http://zb4osgi.aaloa.org/</url>
+ <description><![CDATA[
+ The API of the a generic dongle that allows access to the ZigBee Network
+ ]]></description>
+
+ <inceptionYear>2008</inceptionYear>
+ <organization>
+ <name>Institute of Information Science and Technologies of the Italian National Research Council</name>
+ <url>http://isti.cnr.it/</url>
+ </organization>
+
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <developers>
+ <developer>
+ <id>slenzi</id>
+ <name>Stefano "Kismet" Lenzi</name>
+ <email>stefano.lenzi at isti.cnr.it</email>
+ <organization>Institute of Information Science and Technologies of the Italian National Research Council</organization>
+ <organizationUrl>http://www.isti.cnr.it/</organizationUrl>
+ <timezone>+1</timezone>
+ </developer>
+ </developers>
+
+ <scm>
+ <connection>scm:svn:svn://svn.aaloa.org/projects/zb4osgi/trunk/zigbee.dongle.api</connection>
+ <developerConnection>scm:svn:svn://svn.aaloa.org/projects/zb4osgi/trunk/zigbee.dongle.api</developerConnection>
+ <url>http://zb4osgi.aaloa.org/projects/zb4osgi/repository/show/trunk/zigbee.dongle.api</url>
+ </scm>
+
+ <repositories>
+ <repository>
+ <id>nexus.aaloa.org</id>
+ <url>http://nexus.aaloa.org/content/repositories/releases/</url>
+ <snapshots><enabled>false</enabled></snapshots>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.aaloa.zb4osgi</groupId>
+ <artifactId>org.aaloa.zb4osgi.zigbee.common</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.aaloa.zb4osgi</groupId>
+ <artifactId>org.aaloa.zb4osgi.zigbee.cc2480.datalink</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.ops4j.pax.logging</groupId>
+ <artifactId>pax-logging-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.ops4j.pax.logging</groupId>
+ <artifactId>pax-logging-service</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ </dependency>
+ </dependencies>
+
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-Author><![CDATA[Stefano "Kismet" Lenzi <stefano.lenzi at isti.cnr.it>]]></Bundle-Author>
+ <Bundle-Name>${project.name}</Bundle-Name>
+ <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+ <Private-Package>
+ </Private-Package>
+ <Export-Package>
+ it.cnr.isti.zigbee.dongle.api.*;version=${pom.version}
+ </Export-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-changelog-plugin</artifactId>
+ <configuration>
+ <type>date</type>
+ <dates>
+ <date implementation="java.lang.String">2010-10-24</date>
+ <date implementation="java.lang.String">2029-12-31</date>
+ </dates>
+ <dateFormat>yyyy-MM-dd</dateFormat>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/AFMessageListner.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/AFMessageListner.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/AFMessageListner.java Mon Sep 24 17:38:32 2012
@@ -1,0 +1,46 @@
+/*
+ Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+ Institute of Information Science and Technologies
+ of the Italian National Research Council
+
+
+ See the NOTICE file distributed with this work for additional
+ information regarding copyright ownership
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+package it.cnr.isti.zigbee.dongle.api;
+
+
+import com.itaca.ztool.api.af.AF_INCOMING_MSG;
+
+/**
+ * This class reppresent the callback invoked by the {@link SimpleDriver} whenever a message<br>
+ * that belongs to the <i>Application Framework</i> arrives from the <i>ZigBee Network</i>
+ *
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface AFMessageListner {
+
+ /**
+ * This method is invoked by the {@link SimpleDriver} on all the {@link AFMessageListner}<br>
+ * when a {@link AF_INCOMING_MSG} command arrive from the ZigBee NIC
+ *
+ * @param msg the {@link AF_INCOMING_MSG} arrived that has to be handled
+ */
+ void notify(AF_INCOMING_MSG msg);
+}
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/AFMessageListner.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/AnnunceListner.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/AnnunceListner.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/AnnunceListner.java Mon Sep 24 17:38:32 2012
@@ -1,0 +1,51 @@
+/*
+ Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+ Institute of Information Science and Technologies
+ of the Italian National Research Council
+
+
+ See the NOTICE file distributed with this work for additional
+ information regarding copyright ownership
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+package it.cnr.isti.zigbee.dongle.api;
+
+import com.itaca.ztool.api.ZToolAddress16;
+import com.itaca.ztool.api.ZToolAddress64;
+
+/**
+ *
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface AnnunceListner {
+
+ /**
+ * Callback invoked when an <i>Annunce</i> message arrives
+ *
+ * @param senderAddress the network address of the node which sent the <i>Annunce</i> message
+ * @param ieeeAddress the 64-bit address of the node that is the subject of the
+ * <i>Annunce</i> message
+ * @param networkAddress the network address assigned to the node that is the subject
+ * of the <i>Annunce</i> message
+ * @param capabilitiesBitmask the bitmask identifying the network capibility of the
+ * node that is the subject of the <i>Annunce</i> message
+ */
+ void notify(ZToolAddress16 senderAddress, ZToolAddress64 ieeeAddress,
+ ZToolAddress16 networkAddress, int capabilitiesBitmask);
+
+}
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/AnnunceListner.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/ConfigurationProperties.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/ConfigurationProperties.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/ConfigurationProperties.java Mon Sep 24 17:38:32 2012
@@ -1,0 +1,196 @@
+/*
+ Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+ Institute of Information Science and Technologies
+ of the Italian National Research Council
+
+
+ See the NOTICE file distributed with this work for additional
+ information regarding copyright ownership
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+package it.cnr.isti.zigbee.dongle.api;
+
+
+/**
+ *
+ * This class contains all the system property that <b>SHOULD</b> affect the behavior of a {@link SimpleDriver}
+ *
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ * @version $LastChangedRevision: 87 $ ($LastChangedDate: 2010-10-08 10:37:31 +0200 (ven, 08 ott 2010) $)
+ * @since 0.6.0
+ *
+ */
+public interface ConfigurationProperties {
+
+ /**
+ * The default value for the {@link #NETWORK_MODE_KEY} property, that is <b>Coordinator</b>
+ */
+ public final static String NETWORK_MODE = NetworkMode.Coordinator.toString();
+ /**
+ * Key to use to change the <code>Network Mode</code>, accepted values are:<br>
+ * - "<b>Coordinator</b>": the driver try to create a ZigBee network and will be the coordinator<br>
+ * - "<b>Router</b>": the driver try to join any ZigBee as Router to an existing network<br>
+ * - "<b>EndDevice</b>" : the driver to join to a ZigBee as End-Device to an existing network<br>
+ */
+ public final static String NETWORK_MODE_KEY = "it.cnr.isti.zigbee.driver.mode";
+
+
+ /**
+ * The default value for the {@link #PAN_ID_KEY} property, that is <b>0x1357</b>
+ */
+ public final static int PAN_ID = 0x1357;
+
+ /**
+ * Key to use to control the <b>Network Pan Id</b> to connect to or to create by the driver
+ */
+ public final static String PAN_ID_KEY = "it.cnr.isti.zigbee.pan.id";
+
+
+ /**
+ * The default value for the {@link #CHANNEL_ID_KEY} property, that is <b>23</b>
+ */
+ public final static byte CHANNEL_ID = 23;
+
+ /**
+ * Key to use to control the <b>Network Channel</b> to connect to or to create by the driver
+ */
+ public final static String CHANNEL_ID_KEY = "it.cnr.isti.zigbee.pan.channel";
+
+
+ /**
+ * The default value for the {@link #COM_NAME_KEY} property, that is <b>auto</b>
+ */
+ public final static String COM_NAME = "auto";
+
+ /**
+ * Key to use to control the <b>Serial Port</b> used by the driver for communicating with the dongle.<br>
+ * The value <b>MUST</b> represent the <i>Serial Port</i> name or <i>auto</i> for enabling the auto discovery
+ */
+ public final static String COM_NAME_KEY = "it.cnr.isti.zigbee.driver.serial.portname";
+
+
+ /**
+ * The default value for the {@link #COM_BOUDRATE_KEY} property, that is <b>38400</b>
+ */
+ public final static int COM_BOUDRATE = 38400;
+
+ /**
+ * Key to use to control the <b>Boud Rate</b> used by the driver for communicating with the dongle
+ */
+ public final static String COM_BOUDRATE_KEY = "it.cnr.isti.zigbee.driver.serial.boudrate";
+
+
+ /**
+ * The default value for the {@link #NETWORK_FLUSH_KEY} property, that is <b>false</b>
+ */
+ public final static boolean NETWORK_FLUSH = false;
+
+ /**
+ * Key to use to control if we have to reset the status of the dongle. We it is set to <b>true</b> it reset the dongle<br>
+ * regardless of the current setting of the used and the old setting used by the dongle<br>
+ * <br>
+ * <b>NOTE</b>:Resetting the status usually means creation of a new ZigBee network
+ */
+ public final static String NETWORK_FLUSH_KEY = "it.cnr.isti.zigbee.driver.flush";
+
+
+ /**
+ * The default value for the {@link #APPLICATION_MSG_RETRY_COUNT_KEY} property, that is <b>3</b>
+ */
+ public final static int APPLICATION_MSG_RETRY_COUNT = 3;
+
+ /**
+ * Key to use to control the how many times the driver should retransmit an application message before giving up
+ */
+ public final static String APPLICATION_MSG_RETRY_COUNT_KEY = "it.cnr.isti.zigbee.driver.communication.retry.count";
+
+
+ /**
+ * The default value for the {@link #APPLICATION_MSG_RETRY_DELAY_KEY} property, that is <b>1000ms</b>
+ */
+ public final static int APPLICATION_MSG_RETRY_DELAY = 1000;
+
+ /**
+ * Key to use to control the how much time to wait between the automatic retransmission
+ */
+ public final static String APPLICATION_MSG_RETRY_DELAY_KEY = "it.cnr.isti.zigbee.driver.communication.retry.delay";
+
+
+ /**
+ * The default value for the {@link #APPLICATION_MSG_TIMEOUT_KEY} property, that is <b>2500ms</b>
+ */
+ public final static int APPLICATION_MSG_TIMEOUT = 2500;
+
+ /**
+ * Key to use to control the how much time to wait for waiting an response to a request,<br>
+ * when timeout is fired it is considered as a failed communication even if the message arrives later on
+ */
+ public final static String APPLICATION_MSG_TIMEOUT_KEY = "it.cnr.isti.zigbee.driver.communication.timeout";
+
+
+ /**
+ * The default value for the {@link ConfigurationProperties#AUTOMATIC_ENDPOINT_ADDRESS_RETRY_KEY} property, that is <b>0</b>.
+ * @since 0.6.0 - Revision 86
+ */
+ public final static int AUTOMATIC_ENDPOINT_ADDRESS_RETRY = 0;
+ /**
+ * The maximum number of retry that the ZigBee Base Driver should before giving up the<br>
+ * registration of a local device when the End Point address chosen was not actually free.<br>
+ * <br>
+ * <b>NOTE:</b><i>The maximum theoretical value is 240 so any value greater than 240 would<br>
+ * not change the result</i>
+ *
+ * @since 0.6.0 - Revision 86
+ */
+ public static final String AUTOMATIC_ENDPOINT_ADDRESS_RETRY_KEY = "it.cnr.isti.zigbee.driver.communication.ep.address.retry";
+
+
+ /**
+ * The default value for the {@link ConfigurationProperties#FIRST_ENDPOINT_ADDRESS_KEY} property, that is <b>2</b>.
+ * @since 0.6.0 - Revision 86
+ */
+ public final static int FIRST_ENDPOINT_ADDRESS = 2;
+ /**
+ * The first end point address that the ZigBee Base Driver should use for registering local device<br>
+ * @since 0.6.0 - Revision 86
+ */
+ public static final String FIRST_ENDPOINT_ADDRESS_KEY = "it.cnr.isti.zigbee.driver.communication.ep.address.first";
+
+
+ /**
+ * The default value for the {@link ConfigurationProperties#NETWORK_BROWSING_PERIOD_KEY} property, that is <b>15 minutes</b>.
+ */
+ public final static int NETWORK_BROWSING_PERIOD = 15 * 60 * 1000;
+ /**
+ * The minimum number of milliseconds that must elapse between that two execution of the ZigBee network<br>
+ * address-tree browsing, for discovering devices.
+ */
+ public final static String NETWORK_BROWSING_PERIOD_KEY = "it.cnr.isti.zigbee.driver.network.browsing.period";
+
+
+ /**
+ * The default value for the {@link ConfigurationProperties#DEVICE_INSPECTION_PERIOD_KEY} property, that is <b>10 seconds</b>.
+ */
+ public final static int DEVICE_INSPECTION_PERIOD = 10 * 1000;
+ /**
+ * The minimum number of milliseconds that must elapse between that two device are inspected by the<br>
+ * ZigBee Base Driver. It is useful to reduce the network saturation during the first boot of the driver.
+ */
+ public final static String DEVICE_INSPECTION_PERIOD_KEY = "it.cnr.isti.zigbee.driver.device.inspection.rate";
+
+ /*public final static boolean PERMIT_JOIN = false;
+
+ public final static String PERMIT_JOIN_KEY = "it.cnr.isti.zigbee.driver.device.permit.join";*/
+}
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/ConfigurationProperties.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/DriverStatus.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/DriverStatus.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/DriverStatus.java Mon Sep 24 17:38:32 2012
@@ -1,0 +1,68 @@
+/*
+ Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+ Institute of Information Science and Technologies
+ of the Italian National Research Council
+
+
+ See the NOTICE file distributed with this work for additional
+ information regarding copyright ownership
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+package it.cnr.isti.zigbee.dongle.api;
+
+/**
+ *
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.6.0
+ *
+ */
+public enum DriverStatus {
+
+ /**
+ * The driver has been created and it will start to initialize all the hardware resources<br>
+ * and the ZigBee network (i.e.: it will either join or create a network).
+ */
+ CREATED,
+
+ /**
+ * The driver has already initialized all the hardware resources, and it is waiting for<br>
+ * the hardware to complete the initialization process
+ */
+ HARDWARE_INITIALIZING,
+
+ /**
+ * The all the hardware resources have been initialized successfully, it will start to<br>
+ * initialize the ZigBee network
+ */
+ HARDWARE_READY,
+
+ /**
+ * The driver has already initialized the ZigBee network, and it is waiting for<br>
+ * the completion of process (i.e.: it joined to the network and it is waiting for <br>
+ * a network address)
+ */
+ NETWORK_INITIALIZING,
+
+ /**
+ * The driver successfully joined to or create the ZigBee network
+ */
+ NETWORK_READY,
+
+ /**
+ * The driver is closed, no resources is in use
+ */
+ CLOSED;
+}
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/DriverStatus.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/NetworkMode.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/NetworkMode.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/NetworkMode.java Mon Sep 24 17:38:32 2012
@@ -1,0 +1,38 @@
+/*
+ Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+ Institute of Information Science and Technologies
+ of the Italian National Research Council
+
+
+ See the NOTICE file distributed with this work for additional
+ information regarding copyright ownership
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+package it.cnr.isti.zigbee.dongle.api;
+
+/**
+ *
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public enum NetworkMode {
+
+ Coordinator,
+ Router,
+ EndDevice;
+
+}
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/NetworkMode.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/SimpleDriver.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/SimpleDriver.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/SimpleDriver.java Mon Sep 24 17:38:32 2012
@@ -1,0 +1,158 @@
+/*
+ Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+ Institute of Information Science and Technologies
+ of the Italian National Research Council
+
+
+ See the NOTICE file distributed with this work for additional
+ information regarding copyright ownership
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+package it.cnr.isti.zigbee.dongle.api;
+
+import com.itaca.ztool.api.af.AF_DATA_CONFIRM;
+import com.itaca.ztool.api.af.AF_DATA_REQUEST;
+import com.itaca.ztool.api.af.AF_REGISTER;
+import com.itaca.ztool.api.af.AF_REGISTER_SRSP;
+import com.itaca.ztool.api.zdo.ZDO_ACTIVE_EP_REQ;
+import com.itaca.ztool.api.zdo.ZDO_ACTIVE_EP_RSP;
+import com.itaca.ztool.api.zdo.ZDO_BIND_REQ;
+import com.itaca.ztool.api.zdo.ZDO_BIND_RSP;
+import com.itaca.ztool.api.zdo.ZDO_IEEE_ADDR_REQ;
+import com.itaca.ztool.api.zdo.ZDO_IEEE_ADDR_RSP;
+import com.itaca.ztool.api.zdo.ZDO_MGMT_LQI_REQ;
+import com.itaca.ztool.api.zdo.ZDO_MGMT_LQI_RSP;
+import com.itaca.ztool.api.zdo.ZDO_NODE_DESC_REQ;
+import com.itaca.ztool.api.zdo.ZDO_NODE_DESC_RSP;
+import com.itaca.ztool.api.zdo.ZDO_SIMPLE_DESC_REQ;
+import com.itaca.ztool.api.zdo.ZDO_SIMPLE_DESC_RSP;
+import com.itaca.ztool.api.zdo.ZDO_UNBIND_REQ;
+import com.itaca.ztool.api.zdo.ZDO_UNBIND_RSP;
+
+/**
+ *
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface SimpleDriver {
+
+ public abstract void setZigBeeNodeMode(NetworkMode m);
+
+ public abstract void setZigBeeNetwork(byte ch, short panId);
+
+ public abstract void setSerialPort(String serialName, int bitRate);
+
+ public abstract void open(boolean cleanCache);
+
+ public abstract void open();
+
+ public abstract void close();
+
+ public abstract ZDO_IEEE_ADDR_RSP sendZDOIEEEAddressRequest(ZDO_IEEE_ADDR_REQ request);
+
+ public abstract ZDO_NODE_DESC_RSP sendZDONodeDescriptionRequest(ZDO_NODE_DESC_REQ request);
+
+ public abstract ZDO_ACTIVE_EP_RSP sendZDOActiveEndPointRequest(ZDO_ACTIVE_EP_REQ request);
+
+ public abstract ZDO_SIMPLE_DESC_RSP sendZDOSimpleDescriptionRequest(ZDO_SIMPLE_DESC_REQ request);
+
+ public abstract boolean addAnnunceListener(AnnunceListner listner);
+
+ public abstract boolean removeAnnunceListener(AnnunceListner listner);
+
+ public abstract AF_REGISTER_SRSP sendAFRegister(AF_REGISTER request);
+
+ public abstract AF_DATA_CONFIRM sendAFDataRequest(AF_DATA_REQUEST request);
+
+ public abstract ZDO_BIND_RSP sendZDOBind(ZDO_BIND_REQ request);
+
+ public abstract ZDO_UNBIND_RSP sendZDOUnbind(ZDO_UNBIND_REQ request);
+
+ public abstract boolean removeAFMessageListener(AFMessageListner listner);
+
+ public abstract boolean addAFMessageListner(AFMessageListner listner);
+
+ /* */
+
+ //public abstract ZDO_MGMT_PERMIT_JOIN_REQ_SRSP sendPermitJoinRequest(ZDO_MGMT_PERMIT_JOIN_REQ request);
+
+ public abstract ZDO_MGMT_LQI_RSP sendLQIRequest(ZDO_MGMT_LQI_REQ request);
+
+ /* */
+
+ /**
+ * <b>WARNING</b>: This method may have to wait for the initialization of the ZigBee network<br>
+ * thus, it may be quite slow or end up in a deadlock of the application
+ *
+ * @return The long representing the IEEE Address of coordinator of the ZigBee network in use, or -1 if and only if the method failed
+ * @since 0.2.0
+ */
+ public abstract long getExtendedPanId();
+
+ /**
+ * <b>WARNING</b>: This method may have to wait for the initialization of the ZigBee network<br>
+ * thus, it may be quite slow or end up in a deadlock of the application
+ *
+ * @return The long representing the IEEE Address of ZigBee device in use, or -1 if and only if the method failed
+ * @since 0.2.0
+ */
+ public abstract long getIEEEAddress();
+
+ /**
+ * <b>WARNING</b>: This method may have to wait for the initialization of the ZigBee network<br>
+ * thus, it may be quite slow or end up in a deadlock of the application
+ *
+ * @return The panId of ZigBee network configured in use, or -1 if and only if the method failed
+ * @since 0.2.0
+ */
+ public abstract int getCurrentPanId();
+
+ /**
+ * <b>WARNING</b>: This method may have to wait for the initialization of the ZigBee network<br>
+ * thus, it may be quite slow or end up in a deadlock of the application
+ *
+ * @return The ZigBee network channel in use, or -1 if and only if the method failed
+ * @since 0.2.0
+ */
+ public abstract int getCurrentChannel();
+
+ /**
+ * <b>WARNING</b>: This method may have to wait for the initialization of the ZigBee network<br>
+ * thus, it may be quite slow or end up in a deadlock of the application
+ *
+ * @return The ZStack state of the device, or -1 if and only if the method failed
+ * @since 0.2.0
+ * @deprecated
+ */
+ public abstract int getCurrentState();
+
+ /**
+ * <b>WARNING</b>: This method may have to wait for the initialization of the ZigBee network<br>
+ * thus, it may be quite slow or end up in a deadlock of the application
+ *
+ * @return The int representation of the {@link NetworkMode} in use, or -1 if and only if the method failed
+ * @since 0.6.0
+ */
+ public abstract int getZigBeeNodeMode();
+
+ /**
+ *
+ * @return The current status of the driver
+ * @see 0.6.0
+ */
+ public abstract DriverStatus getDriverStatus();
+}
Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.dongle.api/src/main/java/it/cnr/isti/zigbee/dongle/api/SimpleDriver.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the Commit
mailing list