Uplift of zutil and updated documentation
This commit is contained in:
parent
9e58387ef7
commit
8c369ed2e8
3 changed files with 21 additions and 12 deletions
|
|
@ -18,7 +18,7 @@ subprojects {
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'se.koc:zutil:1.0.300'
|
implementation 'se.koc:zutil:1.0.302'
|
||||||
//implementation 'se.koc:zutil:1.0.0-SNAPSHOT'
|
//implementation 'se.koc:zutil:1.0.0-SNAPSHOT'
|
||||||
|
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,13 @@
|
||||||
|
|
||||||
|Config Parameter |Value |Description |
|
|Config Parameter |Value |Description |
|
||||||
|-----------------|-----------------------------|------------|
|
|-----------------|-----------------------------|------------|
|
||||||
|zwave.com_port |Name or location of com port |The port where radio dongle is connected|
|
|hal_zigbee.com_port |Name or location of com port |The port where radio dongle is connected|
|
||||||
|zigbee.pan_id |Integer |The PAN ID for the radio module|
|
|hal_zigbee.dongle= |CC2531 or CONBEE or XBEE |Configure the dongle type|
|
||||||
|
|hal_zigbee.network.channel |Integer ||
|
||||||
|
|hal_zigbee.network.panid |Integer ||
|
||||||
|
|hal_zigbee.network.epanid |HEX ||
|
||||||
|
|hal_zigbee.network.nwkey |HEX ||
|
||||||
|
|hal_zigbee.network.linkkey |HEX ||
|
||||||
|
|
||||||
# Hardware
|
# Hardware
|
||||||
|
|
||||||
|
|
@ -17,20 +22,25 @@ You need to buy the following items:
|
||||||
https://www.aliexpress.com/item/4001095299084.html
|
https://www.aliexpress.com/item/4001095299084.html
|
||||||
|
|
||||||
## Flashing Dongle
|
## Flashing Dongle
|
||||||
Instructions are originally from: https://www.zigbee2mqtt.io/information/flashing_the_cc2531.html
|
These instructions are a modified version of from: https://www.zigbee2mqtt.io/information/flashing_the_cc2531.html
|
||||||
|
|
||||||
|
### Firmware
|
||||||
|
You first need to download the firmware that should be flashed to the stick. There are multiple sources where firmware can be downloaded at:
|
||||||
|
* Download firmware from GitHub [CC2531_DEFAULT_xxxxxxx.zip](https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_Home_1.2/bin/default/CC2531_DEFAULT_20201127.zip) (If link is dead try latest version [here](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_Home_1.2/bin/default)).
|
||||||
|
More information about available firmware can be found [here](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator).
|
||||||
|
* Download official Z-STACK software (We do not actually need the software just the firmware binary that is included in the installation) from https://www.ti.com/tool/Z-STACK (You will need to create an account to download)
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
1. Download and install the "SmartRF Flash Programmer" **(Not v2)** application from https://www.ti.com/tool/FLASH-PROGRAMMER
|
1. Download and install the "SmartRF Flash Programmer" **(Not v2)** application from https://www.ti.com/tool/FLASH-PROGRAMMER
|
||||||
2. Download Z-STACK software (We do not actually need the software just the firmware binary that is included in the installation) from https://www.ti.com/tool/Z-STACK (You will need to create an account to download)
|
|
||||||
|
|
||||||
|
|
||||||
3. Connect CC debugger to the CC2531 USB sniffer.
|
2. Connect CC debugger to the CC2531 USB sniffer.
|
||||||
4. Connect **BOTH** the CC2531 USB sniffer and the CC debugger to your PC using USB.
|
3. Connect **BOTH** the CC2531 USB sniffer and the CC debugger to your PC using USB.
|
||||||
* If the light on the CC debugger is RED press set reset button on the CC debugger. The light on the CC debugger should now turn GREEN. If not use [CC debugger user guide](http://www.ti.com/lit/ug/swru197h/swru197h.pdf) to troubleshoot your problem.
|
* If the light on the CC debugger is RED press set reset button on the CC debugger. The light on the CC debugger should now turn GREEN. If not use [CC debugger user guide](http://www.ti.com/lit/ug/swru197h/swru197h.pdf) to troubleshoot your problem.
|
||||||
6. Start SmartRF Flash Programmer, with the properties below:
|
4. Start SmartRF Flash Programmer, with the properties below:
|
||||||
* Flash image: Locate the binary at <Z-Stack install dir>\Projects\zstack\ZNP\CC253x\dev\ (Make sure to select the .hex file and not the .bin file).
|
* Flash image: Locate the binary at <Z-Stack install dir>\Projects\zstack\ZNP\CC253x\dev\ (Make sure to select the .hex file and not the .bin file).
|
||||||
* Uncheck "Retain IEEE address when reprogramming the chip".
|
* Uncheck "Retain IEEE address when reprogramming the chip".
|
||||||
7. Press "Perform Action" to start flashing.
|
5. Press "Perform Action" to start flashing.
|
||||||
|
|
||||||
### Linux or MacOS
|
### Linux or MacOS
|
||||||
|
|
||||||
|
|
@ -51,8 +61,7 @@ Instructions are originally from: https://www.zigbee2mqtt.io/information/flashin
|
||||||
|
|
||||||
3. Connect **BOTH** the CC2531 USB sniffer and the CC debugger to your PC using USB.
|
3. Connect **BOTH** the CC2531 USB sniffer and the CC debugger to your PC using USB.
|
||||||
* If the light on the CC debugger is RED press set reset button on the CC debugger. The light on the CC debugger should now turn GREEN. If not use [CC debugger user guide](http://www.ti.com/lit/ug/swru197h/swru197h.pdf) to troubleshoot your problem.
|
* If the light on the CC debugger is RED press set reset button on the CC debugger. The light on the CC debugger should now turn GREEN. If not use [CC debugger user guide](http://www.ti.com/lit/ug/swru197h/swru197h.pdf) to troubleshoot your problem.
|
||||||
4. Download the firmware [CC2531_DEFAULT_xxxxxxx.zip](https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_Home_1.2/bin/default/CC2531_DEFAULT_20201127.zip) (If link is dead try latest version [here](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_Home_1.2/bin/default))
|
4. Flash your firmware:
|
||||||
5. Flash your firmware:
|
|
||||||
|
|
||||||
sudo ./cc-tool -e -w CC2531ZNP-Prod.hex
|
sudo ./cc-tool -e -w CC2531ZNP-Prod.hex
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ public class ZigbeeAttributeUpdateDaemon implements HalDaemon, Runnable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initiate(ScheduledExecutorService executor) {
|
public void initiate(ScheduledExecutorService executor) {
|
||||||
executor.scheduleAtFixedRate(this, 0, 10, TimeUnit.MINUTES);
|
executor.scheduleAtFixedRate(this, 10, 10, TimeUnit.MINUTES);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue