... | @@ -5,7 +5,22 @@ You will need Maven and Java Development Kit. git and wireshark are useful. |
... | @@ -5,7 +5,22 @@ You will need Maven and Java Development Kit. git and wireshark are useful. |
|
|
|
|
|
git clone the zigbee4java repository (https://github.com/tlaukkan/zigbee4java.git) and clone there the zigbee-dongle-kw2x implementation.
|
|
git clone the zigbee4java repository (https://github.com/tlaukkan/zigbee4java.git) and clone there the zigbee-dongle-kw2x implementation.
|
|
|
|
|
|
To use kw2x in the getaway application change the pom.xml:
|
|
To use kw2x in the zigbee4java directory change the pom.xml adding the following line:
|
|
|
|
```
|
|
|
|
<modules>
|
|
|
|
<module>zigbee-common</module>
|
|
|
|
<module>zigbee-dongle-cc2531</module>
|
|
|
|
----> <module>zigbee-dongle-kw2x</module> <----
|
|
|
|
<module>zigbee-gateway-client</module>
|
|
|
|
<module>zigbee-gateway-server</module>
|
|
|
|
<module>legacy-modules/zigbee-api</module>
|
|
|
|
<module>zigbee-serial-javase</module>
|
|
|
|
<module>zigbee-serial-android</module>
|
|
|
|
<module>legacy-modules/zigbee-console-javase</module>
|
|
|
|
<module>legacy-modules/zigbee-console-common</module>
|
|
|
|
</modules>
|
|
|
|
```
|
|
|
|
than, in the zigbee-getaway-server change the pom.xml:
|
|
```
|
|
```
|
|
<dependency>
|
|
<dependency>
|
|
<groupId>org.bubblecloud.zigbee4java</groupId>
|
|
<groupId>org.bubblecloud.zigbee4java</groupId>
|
... | @@ -21,6 +36,10 @@ to |
... | @@ -21,6 +36,10 @@ to |
|
<version>3.1.0-SNAPSHOT</version>
|
|
<version>3.1.0-SNAPSHOT</version>
|
|
</dependency>
|
|
</dependency>
|
|
```
|
|
```
|
|
|
|
finally, in the ZigBeeGetawayMain.java,
|
|
|
|
`final ZigBeeDongle dongle = new ZigBeeDongleTiCc2531Impl(serialPort, pan, channel, networkKey, resetNetwork);`
|
|
|
|
to
|
|
|
|
`final ZigBeeDongle dongle = new ZigBeeDongleNxpKw2xImpl(serialPort, pan, channel, networkKey, resetNetwork);`
|
|
|
|
|
|
To set up git proxy:
|
|
To set up git proxy:
|
|
`git config --global http.proxy http://proxy.server.it:8080`;
|
|
`git config --global http.proxy http://proxy.server.it:8080`;
|
... | @@ -56,6 +75,10 @@ To setup the linux kernel to enable usbmon (the module to sniff on serial port t |
... | @@ -56,6 +75,10 @@ To setup the linux kernel to enable usbmon (the module to sniff on serial port t |
|
1. git clone https://github.com/tlaukkan/zigbee4java.git
|
|
1. git clone https://github.com/tlaukkan/zigbee4java.git
|
|
2. cd zigbee4java
|
|
2. cd zigbee4java
|
|
3. git clone git.pertforge.ismb.it:ggarrisi/zigbee-dongle-k22x.git
|
|
3. git clone git.pertforge.ismb.it:ggarrisi/zigbee-dongle-k22x.git
|
|
4. nano zigbee-getaway-server/pom.xml
|
|
4. nano pom.xml
|
|
5. change the lines
|
|
5. add the module line `<module>zigbee-dongle-kw2x</module>`
|
|
6. mvn clean install |
|
6. nano zigbee-getaway-server/pom.xml
|
|
|
|
7. change the line `<artifactId>zigbee-dongle-cc2531</artifactId>` with `<artifactId>zigbee-dongle-kw2x</artifactId>`
|
|
|
|
8. nano zigbee-gateway-server/src/main/java/org/bubblecloud/zigbee/v3/ZigBeeGatewayMain.java
|
|
|
|
9. change the line `final ZigBeeDongle dongle = new ZigBeeDongleTiCc2531Impl(serialPort, pan, channel, networkKey, resetNetwork);` to `final ZigBeeDongle dongle = new ZigBeeDongleNxpKw2xImpl(serialPort, pan, channel, networkKey, resetNetwork);`
|
|
|
|
10. mvn clean install |