Git Product home page Git Product logo

z-stack-firmware's Introduction

z-stack-firmware's People

Contributors

8none1 avatar billynate avatar candoanything avatar cbrandlehner avatar circuitsetup avatar cyijun avatar danielgomezrico avatar davidjb avatar dzungpv avatar egony avatar gamester17 avatar gio-dot avatar guozi7788 avatar hedda avatar io53 avatar kirovilya avatar koenkk avatar mercenaruss avatar metus88 avatar muxa avatar oliv3r avatar omerk avatar pipiche38 avatar pixeldoc2000 avatar qm3ster avatar reverieline avatar sergge1 avatar sjorge avatar utechtdustin avatar wrt54g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

z-stack-firmware's Issues

Why custom firmware?

Hi,

Can you explain why do we need a custom firmware? I'm just curious as the default ZNP provided by TI should be enough... Looking at the firmware patch it looks more like a fine tuning of the Z-Stack rather than any significant change. Would be great if you could add to the readme a short paragraph explaining why the custom firmware is required. Thanks.

CC2530 with RFX2401 not working

@ptvo
Hi, I've got a device CC2530 device where the connections to the RFX2401 are different to the
spec from TI using a cc2592.

On the CC2592 the following pins are use:
P1_1 for TX_ENABLE
P1_0 for RX_ENABLE

This is my hardware:
http://e2e.ti.com/resized-image/__size/1230x0/__key/communityserver-discussions-components-files/158/20181106_5F00_093932.jpg
My RFX2401 is connected using
P1_1 for TX_ENABLE (this is like CC2592)
P2_0 for RX_ENABLE (this is different)

Could you please confirm that the current cc2592 firmware is working with those pins
or please make a binary where those connections are used.

The problem is that the device can be paired to a coordinator , but it will not be used as a router of any other devices.
Pairing devices directly to this router always fails.

Router not pairing devices

Hi,

I have a CC2531 set as a router but I can not get it to act as a router, that is, it behaves like an END DEVICE,

Do you have to do something special? How do I hook up this router?

Thank you

image

CC2530 max devices question

Hi there!

Is this possible to build & flash max_devices fw version to CC2530? same as for CC2531

If not I can extend number of devices in network by another router, right?
I own two CC2530 and have over 20 devices.

Greetings!

CC2530 + CC2591, where/what is SW1?

Simple question maybe, but I can't find a concrete answer.

The first time I got this to send {"state": true}, I really have no idea how it happened.

How do I trigger SW1 on the CC2530 + CC2591?

Soft reset of firmware

I hope that there will be a soft-reset of the coordinator firmware in the near future.
Because this often happens after a reboot of my RPi, and when I am not nearby I am not able to press the button. And often I have to pull the CC2531 to get control again.
2019-1-5 16:33:02 - info: Logging to directory: '/var/log/zigbee' 2019-1-5 16:33:08 - info: Starting zigbee2mqtt version 1.0.1 (commit #9380bbc) 2019-1-5 16:33:08 - info: Starting zigbee-shepherd 2019-1-5 16:33:11 - info: Error while starting zigbee-shepherd, attemping to fix... (takes 60 seconds) 2019-1-5 16:34:11 - info: Starting zigbee-shepherd 2019-1-5 16:34:14 - error: Error while starting zigbee-shepherd! 2019-1-5 16:34:14 - error: Press the reset button on the stick (the one closest to the USB) and start again 2019-1-5 16:34:14 - error: Failed to start Error: request timeout at CcZnp.<anonymous> (/home/pi/zigbee2mqtt/node_modules/cc-znp/lib/ccznp.js:255:22) at Object.onceWrapper (events.js:315:30) at emitOne (events.js:116:13) at CcZnp.emit (events.js:211:7) at Timeout.<anonymous> (/home/pi/zigbee2mqtt/node_modules/cc-znp/lib/ccznp.js:234:18) at ontimeout (timers.js:498:11) at tryOnTimeout (timers.js:323:5) at Timer.listOnTimeout (timers.js:290:5)

[question] reached max device

Hi,
I have reach the max limit of cc2531 with 18 xiaomi devices, will be possible to add anthoer Router to the existing network without changing the coordinator?

Thanks

Why is there never a router to router connection?

Hello,
maybe this is zigbee protocol related in general , but i wasnt able to find anything about it.

i noticed on the map, that all router devices (lamps, power plugs) are always directly connected to the coordinator. i never see a connection between two routers, even that would make the link quality 100% better.
A small snippet from my network map (green line is the way it should go to have a much better connection).
image

Can anyone tell me something about that? Is that zigbee-standard related?

Router firmware is open for new device joins on powercycle.

Hi,
I'm running CC2531 with router firmware to extend coverage for my Xiaomi devices, but the problem I'm having that whenever CC2531 is power cycled, it opens network for new device joins which pretty much can expose the entire network.

Is there a setting for the router firmware not to allow joins on restart?

CC2531 shuts down soon after being plugged-in

Hi. Out of the blue my cc2531 stopped working (it happened during the night, was not changing anything). The green led was off and zigbee2mqtt can't talk to the SoC.

Tried the usual: various plug-out and plug-in, reboots to the rpi, tried using it on the laptop, and tried flashing the latest dev as well as master firmware. Nothing.

The geen led lights up for about a minute, then turns off. The USB is detected but apparently won't talk back.

Any idea on what might be goin' on? Shall I order a new one?

logs from zigbee2mqtt:

  zigbee2mqtt:info 3/13/2019, 3:51:02 PM Logging to directory: '/share/zigbee2mqtt/log/2019-03-13.15-51-02'
  zigbee2mqtt:info 3/13/2019, 3:51:03 PM Starting zigbee2mqtt version 1.2.1 (commit #unknown)
  zigbee2mqtt:info 3/13/2019, 3:51:03 PM Starting zigbee-shepherd
  zigbee2mqtt:info 3/13/2019, 3:51:03 PM Error while starting zigbee-shepherd, attempting to fix... (takes 60 seconds)
  zigbee2mqtt:info 3/13/2019, 3:52:03 PM Starting zigbee-shepherd
  zigbee2mqtt:error 3/13/2019, 3:52:03 PM Error while starting zigbee-shepherd!
  zigbee2mqtt:error 3/13/2019, 3:52:03 PM Press the reset button on the stick (the one closest to the USB) and start again
  zigbee2mqtt:error 3/13/2019, 3:52:03 PM Failed to start
	{"message":"Error: No such file or directory, cannot open /dev/ttyACM0123/hassio/addon/a0d7b954_ide","stack":"Error: Error: No such file or directory, cannot open /dev/ttyACM0123/hassio/addon/a0d7b954_ide"}
  zigbee2mqtt:error 3/13/2019, 3:52:03 PM Exiting...

nothing relevat from dmesg:

root@DietPi:~# dmesg -T | grep ACM 
[Tue Mar 12 11:37:38 2019] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device 
[Wed Mar 13 09:56:37 2019] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device 

nor from journalctl:

oot@DietPi:~# journalctl -xe --no-pager | grep ACM 
Mar 13 09:56:41 DietPi kernel: cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device

any ideas? thanks!

Z-Stack Version

I can't find a version number nowhere, files, commit messages, ...
Is the repo newer then my CC2531 firmware? Z-Tool reports:

*** WARNING ***
Expected Z-Stack version (2.7.1) does not match with actual Z-Stack version (2.6.3). Z-Tool may not work properly.

09:32:53.42 COM5 SYS_VERSION (0x2102)

09:32:53.42 COM5 SYS_VERSION_RESPONSE (0x6102)
TransportRev: 0x02
Product: 0x00
MajorRel: 0x02
MinorRel: 0x06
HwRev: 0x03

BTW: Is there a message reporting coordinator or router firmware?
Making that switchable by a message would also be good?

SmartRF Studio 7 doesn't find that adapter, while Z-Tool is talking to.

Are the .bin files for serial boot loading?

cc2531 update

hello together, can one simply update the cc2531 USB over the CC debuger?
Or do I have to relearn the whole equipment?

Not building with default firmware.patch

I couldn't get the firmware to build in a default installation of IAR + clean git apply firmware.patch on the dev branch. My default XDATA was 0x4D0, but I could only get it to build on 0x400. What XDATA do you build at?

Devices > 30 ccznp has not been initialized yet

i think we have a problem with the new Firmware..

here is my log from iobroker project.. the cc2531 stops after 3-4 hours ..
this is the only message and all devices are offline

zigbee.0 2019-03-15 15:50:53.566 error at ZigbeeController.publish (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:366:20)
zigbee.0 2019-03-15 15:50:53.566 error at Queue.(anonymous function) [as push] (/opt/iobroker/node_modules/queue/index.js:59:12)
zigbee.0 2019-03-15 15:50:53.566 error at Queue.start (/opt/iobroker/node_modules/queue/index.js:145:17)
zigbee.0 2019-03-15 15:50:53.566 error at queue.push (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:377:24)
zigbee.0 2019-03-15 15:50:53.566 error at Endpoint.ep.functional (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-shepherd/lib/shepherd.js:590:25)
zigbee.0 2019-03-15 15:50:53.566 error at ZShepherd._functional (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-shepherd/lib/shepherd.js:722:20)
zigbee.0 2019-03-15 15:50:53.566 error at Object.af.zclFunctional (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-shepherd/lib/components/af.js:384:12)
zigbee.0 2019-03-15 15:50:53.566 error at Object.af.send (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-shepherd/lib/components/af.js:106:16)
zigbee.0 2019-03-15 15:50:53.566 error at Controller.request (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-shepherd/lib/components/controller.js:322:13)
zigbee.0 2019-03-15 15:50:53.566 error at CcZnp.request (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/cc-znp/lib/ccznp.js:182:15)
zigbee.0 2019-03-15 15:50:53.566 error Error: ccznp has not been initialized yet
zigbee.0 2019-03-15 15:50:53.565 error uncaught exception: ccznp has not been initialized yet

here the completely log
Neues Textdokument.TXT

any ideas ???

SBL Version of router firmware necessary

I would like to use a spare CC2531 stick as a router, which was flashed with the SBL version of the coordinator firmware (by a friend), can I use the current router firmware with the SBL tool.

Will this remove the serial bootloader?

IKEA remote and IKEA FLOALT

I have a CC2530_CC2591with the version Coordinator firmware version: '20190109'
Installation:
L1527 - IKEA FLOALT with remote control E1524 - IKEA TRADFRI remote control paired. On / Off, brightness and light color can be controlled with the remote control.
Pairing the L1527 with the stick (6 x on/off) successful. On/Off, brightness and light color can now be controlled via mqtt2zigbee. With the remote control, the lamp can no longer be controlled.
Pairing the remote control with the CC2530 stick (4 x reset button next to the battery, entering the group key into the config) will succeed. Then pair the remote with the lamp. (Reset the lamp, repairing the remote control to the lamp successfully.)
The lamp can now be controlled via mqtt2zigbee. (On/off, brightness and light color)
The remote control now allows control of on/off and brightness.

Problem: The light color can not be changed with the remote control.

New CC2530_CC2591 coordinator firmware missing

Although some recent commits seem to be applicable to the CC2530 and the CC2530+CC2591 hardware, there are no coordinator firmware files in the dev branch. The most recent file (in master) is 20190109.

Apologies if I'm missing something.

Log: Reset coordinator Zigbee Stick blinkt rot (ioBroker)

Hallo, leider macht bei mir die neuste Firmware Probleme.
Ich habe ein paar Zigbee Sticks getestet. 2 mit denen es mit der alten Firmware (CC2531ZNP-Prod_20181024) funktioniert hat und einen neuen auf den ich nur die neuste (CC2531ZNP-Prod_20190109) aufgespielt habe. Sobald ich den serial Port hinterlege und der Adapter neustartet fängt der Zigbee Stick an rot zu blinken ab dem Log Punkt: Reset coordinator, mit der alten Firmware startet der Adapter normal durch und die LED geht aus bzw. leuchtet grün. (Ich kann zwar trotzdem keine Geräte verbinden, aber dieses Problem habe ich schon seit längerem auf ein mal...)

Hat noch jemand dieses Problem?

System:
rock64 mit OMV 4.X
ioBroker 1.4.2
Zigbee Adapter 0.9.2

Unfinalized Firmware .a51 instead of .hex file that generate error "Coordinator initialize had an error: request timeout"

Hi, I have follow your instructions with the patch and IAR.
It compile, I can upload hex file but when I try zigbee shepherd I get this error :

serialport/bindings loading WindowsBinding +0ms
zigbee-shepherd starting +0ms
zigbee-shepherd:init zigbee-shepherd booting... +1ms
serialport/stream opening path: COM6 +0ms
serialport/binding-abstract open +0ms
serialport/stream _read queueing _read for after open +7ms
serialport/stream opened path: COM6 +85ms
cc-znp The serialport COM6 is opened. +99ms
serialport/stream _read reading +2ms
serialport/binding-abstract read +92ms
zigbee-shepherd:request REQ --> SYS:osalNvRead +5ms
cc-znp:SREQ --> SYS:osalNvRead, { id: 3840, offset: 0, len: 1, value: [ 85 ] } +2ms
serialport/stream _write 8 bytes of data +20ms
serialport/binding-abstract write 8 bytes +22ms
serialport/stream binding.write write finished +9ms
cc-znp:SRSP <-- SYS:osalNvRead, TIMEOUT, { id: 3840, offset: 0, len: 1, value: [ 85 ] } +4s
zigbee-shepherd:request RSP <-- SYS:osalNvRead +6ms
zigbee-shepherd:init Coordinator initialize had an error: request timeout +2ms

With the hex that you provide it works well.
Any Idea ??
My IAR version 10.30.1

cc2531 crashes with the coordinator dev firmware

currently there is a reproducible problem with different cc2531 chips with the dev firmware. After a few hours, the chip crashes and no communication takes place. First unplug the chip and plug it back in to fix the problem.

flash error

atti@debian:~/cc-tool$ sudo ./cc-tool -e -w CC2531ZNP-Prod.hex
Error occured: File 'CC2531ZNP-Prod.hex' load error: Record header not found, line: 7

Windows flasher: could not open specified HEX file

Router Link Quality frequently dropping to 0

I've got 2 2531 routers and 1 coordinator in my set up. Main floor = 1 2531 coord, 1 2531 router, 1 sengled LED bulb router. Upstairs = 1 2531 router, 1 sengled LED bulb router. Hassio shows me the link quality of my 2 2531 routers. One of them, which is on the same floor and about 18 ft away through a wall, frequently drops to 0. Honestly, it is more often 0 than not. The router on the second floor drops to 0, but not as frequently. Is this normal?

CC2531F128

I've got a bunch of CC2531F128, with only 128kb flash. Are they trash or is there some firmware that could make them usable? maybe as a router?

Flashing CC2530 using Arduino+CCLib

I try to flash my new CC2530 using my Arduino UNO loaded with the CCLib Proxy and i obtain this meesage:

INFO: Found a CC2530 chip on COM5

Chip information:
Chip ID : 0xa524
Flash size : 256 Kb
Page size : 2 Kb
SRAM size : 8 Kb
USB : No
Traceback (most recent call last):
File "C:\Users\T15412\Downloads\CCLib-master\Python\cc_write_flash.py", line 48, in
hexFile.load()
File "C:\Users\T15412\Downloads\CCLib-master\Python\cclib\cchex.py", line 128, in load
self._loadHex()
File "C:\Users\T15412\Downloads\CCLib-master\Python\cclib\cchex.py", line 367, in _loadHex
raise IOError("Line %i: Unknown record type %02x" % (i, bType))
IOError: Line 12527: Unknown record type 05

What can be wrong?

Thanks

Add Sniffing

It would be great if the firmware could be used for sniffing to.

Tune a channel, switch on receiving, no filtering, forward all packets to serial.

May be this is possible already with the SYS/MAC Layer, manual hacking registers/settings with SYS,
and forwarding of packets from hardware to serial already in MAC.

I've tried to find a simple demo to get mac-receiving running somehow and tweak it to just forward all,
unfortunately I only find complicated stuff and putting it all together myself will probably take days because it will not work for several reasons I will not now or make right.

git apply patch

Hi,

Im trying to apply "fireware.patch" file and got this errors

MINGW64 /c/Texas Instruments/Z-Stack Home 1.2.2a.44539 $ ls _iss/ Accessories/ Components/ Documents/ EULA.pdf firmware.patch 'Getting Started Guide - CC2530.pdf' 'Getting Started Guide - CC2538.pdf' Projects/ Tools/ 'Z-Stack Core Release Notes.txt' 'Z-Stack Home Release Notes.txt' 'Z-Stack Home Software Development Kit Resource Guide.html' Z-Stack_Home_1.2.2_Manifest.pdf YK@WIN7-PC MINGW64 /c/Texas Instruments/Z-Stack Home 1.2.2a.44539 $ git apply firmware.patch firmware.patch:41: trailing whitespace. #define CODE_REVISION_NUMBER 20190109 firmware.patch:73: trailing whitespace. firmware.patch:79: trailing whitespace. firmware.patch:89: trailing whitespace. // Shared accross all firmwares firmware.patch:90: trailing whitespace. #define ASSERT_RESET error: patch failed: Projects/zstack/ZNP/Source/znp.cfg:101 error: Projects/zstack/ZNP/Source/znp.cfg: patch does not apply

thanks
Yaniv

More groups

@Koenkk
I know you changed the group table size to 1 cause its not used Zigbee2mqtt anyway and cause of the heap. but....
Do you see a way to do a firmware with at least 2 groups too ?
Many people use your firmware (not only Zigbee2mqtt users) and i really dont want to change all my scripts and data points.
i also dont like that lights turn on one by one and not all at the same time like when they are in a group

kind regards.

Can I completely rely on ESP8266?

@Koenkk I want to be able to completely emulate the "multiple Xiaomi gateways" scenario.

  • Can I create a coordinator with long range antenna device like CC2530 CC2591?

  • Can I use CC2530 CC291 as an ESP8266 router? Basically place it anywhere in the house then.

  • Also do xiaomi plugs keep on extending range?

  • As in will this config work?
    hub/coordinator ---- 30ft --- one xiaomi plug ---- 30ft ----- another plug .....

Background have a 4 story house with RPi Hassio in basement closet so coordinator and routers won't be able to talk to each other in Zigbee range. However each floor is fully wifi so interfacing zigbee router through wifi should work.

Would really appreciate your help.

Safe to buy preflashed?

Hi guys,
I been trying for about 3 months now to get a hold of the parts needed to get started on Zigbee2MQTT, but they never seem to show up from China, and I just end with refunds. I would really like to get going, so I found that you can buy preflashed sticks too.
Would you say it is safe to buy one like this?
https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.de%2Fulk%2Fitm%2F372536176132

I assume I will receive a debugger etc at some point, so I can update when that happens.

Router firmware without/with configurable LED

Currently, the LED of the router is blinking during normal operation. This might get quite annoying depending on where the stick is operating. For the coordinator, zigbee2mqtt offers a handy option to disable the LED.

Would it be possible to disable the LED on the router as well, e.g. by a long press on SW1 or so?

Ability to clone a coordinator to be able to have high availability

Hi.

Sorry if that I am asking for is a folly.

Would be nice that a coordinator can be cloned, to have a different RPi, ready to be started if the first RPi came into troubles.

I have been reading about upgrading without repairing devices using foil ... but that I mean is literally clone a stick to have an identicall panid and every parameter / address / memory entries to be able to replace to another stick in seconds .

Do you think that this will be possible some day?

Thanks and sorry for my bad english.

Lights can be turned off,but not on.

Hi,
after a new installation, i paired one of my hue lights.
I got a very strange problem ... i can turn hue lights off, but not on again over the data point
coordinator is cc2530 with 20190109 (latest stable)

here is what the log says, cant find anything strange but maybe someone got an better eye on that.

2019-03-03 17:40:34.309 - �[34mdebug�[39m: zigbee.0 Publish {"linkquality":92}
2019-03-03 17:40:36.675 - �[34mdebug�[39m: zigbee.0 User stateChange zigbee.0.001788010291b13b.state {"val":true,"ack":false,"ts":1551631236670,"q":0,"from":"system.adapter.admin.0","lc":1551631236670}
2019-03-03 17:40:36.687 - �[34mdebug�[39m: zigbee.0 publishFromState: deviceId=0x001788010291b13b, message={"cid":"genLevelCtrl","cmd":"moveToLevelWithOnOff","cmdType":"functional","zclData":{"level":0,"transtime":0},"cfg":{"manufSpec":0,"disDefaultRsp":0},"readAfterWriteTime":0}
2019-03-03 17:40:36.691 - �[34mdebug�[39m: zigbee.0 Zigbee publish to '0x001788010291b13b', genLevelCtrl - cmd moveToLevelWithOnOff - payload {"level":0,"transtime":0} - cfg {"manufSpec":0,"disDefaultRsp":0} - endpoint 11
2019-03-03 17:40:36.755 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b incoming event:{"groupid":0,"clusterid":8,"srcaddr":31777,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":92,"securityuse":0,"timestamp":1053477,"transseqnumber":0,"len":5,"data":{"0":24,"1":36,"2":11,"3":4,"4":0},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":36,"cmdId":"defaultRsp","payload":{"cmdId":4,"statusCode":0}}}
2019-03-03 17:40:36.756 - �[34mdebug�[39m: zigbee.0 Publish {"linkquality":92}
2019-03-03 17:40:36.834 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b incoming event:{"groupid":0,"clusterid":8,"srcaddr":31777,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":92,"securityuse":0,"timestamp":1053698,"transseqnumber":0,"len":13,"data":{"0":24,"1":37,"2":13,"3":1,"4":0,"5":0,"6":32,"7":1,"8":0,"9":33,"10":0,"11":64,"12":32},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":37,"cmdId":"discoverRsp","payload":{"discComplete":1,"attrInfos":[{"attrId":0,"dataType":32},{"attrId":1,"dataType":33},{"attrId":16384,"dataType":32}]}}}
2019-03-03 17:40:36.835 - �[34mdebug�[39m: zigbee.0 Publish {"linkquality":92}
2019-03-03 17:40:36.927 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b incoming event:{"groupid":0,"clusterid":8,"srcaddr":31777,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":92,"securityuse":0,"timestamp":1053981,"transseqnumber":0,"len":19,"data":{"0":24,"1":38,"2":1,"3":0,"4":0,"5":0,"6":32,"7":1,"8":1,"9":0,"10":0,"11":33,"12":0,"13":0,"14":0,"15":64,"16":0,"17":32,"18":254},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":38,"cmdId":"readRsp","payload":[{"attrId":0,"status":0,"dataType":32,"attrData":1},{"attrId":1,"status":0,"dataType":33,"attrData":0},{"attrId":16384,"status":0,"dataType":32,"attrData":254}]}}
2019-03-03 17:40:36.927 - �[34mdebug�[39m: zigbee.0 Publish {"linkquality":92}
2019-03-03 17:40:56.979 - �[34mdebug�[39m: zigbee.0 Check online 0x001788010291b13b. 0x001788010291b13b
2019-03-03 17:40:57.033 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b is available
2019-03-03 17:40:57.034 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b incoming event:{"available":true}
2019-03-03 17:40:57.035 - �[34mdebug�[39m: zigbee.0 Publish {"available":true}
2019-03-03 17:41:12.004 - �[34mdebug�[39m: zigbee.0 User stateChange zigbee.0.001788010291b13b.state {"val":false,"ack":false,"ts":1551631271998,"q":0,"from":"system.adapter.admin.0","lc":1551631271998}
2019-03-03 17:41:12.015 - �[34mdebug�[39m: zigbee.0 publishFromState: deviceId=0x001788010291b13b, message={"cid":"genLevelCtrl","cmd":"moveToLevelWithOnOff","cmdType":"functional","zclData":{"level":0,"transtime":0},"cfg":{"manufSpec":0,"disDefaultRsp":0},"readAfterWriteTime":0}
2019-03-03 17:41:12.021 - �[34mdebug�[39m: zigbee.0 Zigbee publish to '0x001788010291b13b', genLevelCtrl - cmd moveToLevelWithOnOff - payload {"level":0,"transtime":0} - cfg {"manufSpec":0,"disDefaultRsp":0} - endpoint 11
2019-03-03 17:41:12.083 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b incoming event:{"groupid":0,"clusterid":8,"srcaddr":31777,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":89,"securityuse":0,"timestamp":1163872,"transseqnumber":0,"len":5,"data":{"0":24,"1":39,"2":11,"3":4,"4":0},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":39,"cmdId":"defaultRsp","payload":{"cmdId":4,"statusCode":0}}}
2019-03-03 17:41:12.084 - �[34mdebug�[39m: zigbee.0 Publish {"linkquality":89}
2019-03-03 17:41:12.151 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b incoming event:{"groupid":0,"clusterid":8,"srcaddr":31777,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":89,"securityuse":0,"timestamp":1164088,"transseqnumber":0,"len":13,"data":{"0":24,"1":40,"2":13,"3":1,"4":0,"5":0,"6":32,"7":1,"8":0,"9":33,"10":0,"11":64,"12":32},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":40,"cmdId":"discoverRsp","payload":{"discComplete":1,"attrInfos":[{"attrId":0,"dataType":32},{"attrId":1,"dataType":33},{"attrId":16384,"dataType":32}]}}}
2019-03-03 17:41:12.152 - �[34mdebug�[39m: zigbee.0 Publish {"linkquality":89}
2019-03-03 17:41:12.218 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b incoming event:{"groupid":0,"clusterid":8,"srcaddr":31777,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":89,"securityuse":0,"timestamp":1164290,"transseqnumber":0,"len":19,"data":{"0":24,"1":41,"2":1,"3":0,"4":0,"5":0,"6":32,"7":1,"8":1,"9":0,"10":0,"11":33,"12":0,"13":0,"14":0,"15":64,"16":0,"17":32,"18":254},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":41,"cmdId":"readRsp","payload":[{"attrId":0,"status":0,"dataType":32,"attrData":1},{"attrId":1,"status":0,"dataType":33,"attrData":0},{"attrId":16384,"status":0,"dataType":32,"attrData":254}]}}
2019-03-03 17:41:12.218 - �[34mdebug�[39m: zigbee.0 Publish {"linkquality":89}
2019-03-03 17:41:19.950 - �[34mdebug�[39m: zigbee.0 User stateChange zigbee.0.001788010291b13b.state {"val":true,"ack":false,"ts":1551631279945,"q":0,"from":"system.adapter.admin.0","lc":1551631279945}
2019-03-03 17:41:19.962 - �[34mdebug�[39m: zigbee.0 publishFromState: deviceId=0x001788010291b13b, message={"cid":"genLevelCtrl","cmd":"moveToLevelWithOnOff","cmdType":"functional","zclData":{"level":0,"transtime":0},"cfg":{"manufSpec":0,"disDefaultRsp":0},"readAfterWriteTime":0}
2019-03-03 17:41:19.967 - �[34mdebug�[39m: zigbee.0 Zigbee publish to '0x001788010291b13b', genLevelCtrl - cmd moveToLevelWithOnOff - payload {"level":0,"transtime":0} - cfg {"manufSpec":0,"disDefaultRsp":0} - endpoint 11
2019-03-03 17:41:20.043 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b incoming event:{"groupid":0,"clusterid":8,"srcaddr":31777,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":89,"securityuse":0,"timestamp":1188748,"transseqnumber":0,"len":5,"data":{"0":24,"1":42,"2":11,"3":4,"4":0},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":42,"cmdId":"defaultRsp","payload":{"cmdId":4,"statusCode":0}}}
2019-03-03 17:41:20.044 - �[34mdebug�[39m: zigbee.0 Publish {"linkquality":89}
2019-03-03 17:41:20.128 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b incoming event:{"groupid":0,"clusterid":8,"srcaddr":31777,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":86,"securityuse":0,"timestamp":1189018,"transseqnumber":0,"len":13,"data":{"0":24,"1":43,"2":13,"3":1,"4":0,"5":0,"6":32,"7":1,"8":0,"9":33,"10":0,"11":64,"12":32},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":43,"cmdId":"discoverRsp","payload":{"discComplete":1,"attrInfos":[{"attrId":0,"dataType":32},{"attrId":1,"dataType":33},{"attrId":16384,"dataType":32}]}}}
2019-03-03 17:41:20.129 - �[34mdebug�[39m: zigbee.0 Publish {"linkquality":86}
2019-03-03 17:41:20.200 - �[34mdebug�[39m: zigbee.0 Device 0x001788010291b13b incoming event:{"groupid":0,"clusterid":8,"srcaddr":31777,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":89,"securityuse":0,"timestamp":1189233,"transseqnumber":0,"len":19,"data":{"0":24,"1":44,"2":1,"3":0,"4":0,"5":0,"6":32,"7":1,"8":1,"9":0,"10":0,"11":33,"12":0,"13":0,"14":0,"15":64,"16":0,"17":32,"18":254},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":44,"cmdId":"readRsp","payload":[{"attrId":0,"status":0,"dataType":32,"attrData":1},{"attrId":1,"status":0,"dataType":33,"attrData":0},{"attrId":16384,"status":0,"dataType":32,"attrData":254}]}}
2019-03-03 17:41:20.200 - �[34mdebug�[39m: zigbee.0 Publish {"linkquality":89}

sourcecode

Hello,

Is there any way to compile the firmware ourselves ?
Where can we find the sourcecode of coordinator and router ?

Thanks !

Pi Connection

Hi,

Ive successfully flashed a cc2530+cc2591 im now trying to connect to my Pi running hassio but i'm getting errors in the zigbee2mqtt log.

is my connection correct i'm using a FTDI TTL and 4 wires to GND, VCC , P0_2 , P0_3 thats it am i missing anything ????

I have a CC2531 already flashed and thats working great with the Pi but i wanted swap it for something with more range

Will it work ?

Offer multiple versions based on high-mesh networks vs single-node

Was fiddling around with Z-stack 1.2.2 firmwares and was able to compile a version that accepts 44 devices (NWK_MAX_DEVICE_LIST=44) and so far has been stable. Will obviously want to do more testing, but for now my notes below:

Decreasing XDATA stack offset to 0x300 (default) gives a good amount of extra ram and allows approx 20 more devices to be joined. The default in my IAR project was 0x4D0, but this note here http://processors.wiki.ti.com/index.php/Zigbee_Known_Issues_and_Proposed_Fixes#Soft_Reset.2FFreezing.2FStack_Overflow_due_to_BDB_REPORTING_on_CC2530.2FCC2531 makes me believe that the issue arises when BDB_REPORTING is enabled and I don't believe it is for the default firmware. I will report if I hit any issues here in my everyday use.

The other thing I did to increase device limit was to decrease MAX_NEIGHBOR_ENTRIES to 1 because I don't have any routers in my network and the space wasn't being used for anything. I believe I can set this to 0, but in the case that I do get a router I just wanted to have to avoid reflashing everything.

For those who want my custom build, I've hosted it here https://github.com/glentakahashi/Z-Stack-firmware/blob/master/coordinator/CC2531/bin/CC2531ZNP-Prod-44-devices.hex

Update: been running for 3 days with no problems so far

INNR RS 128 T seen as 'undefined'

Hi,
I just added an INNR tunable white GU10 spot but the logs shows:

zigbee2mqtt:info 3/21/2019, 8:29:01 PM Logging to directory: '/opt/zigbee2mqtt/data/log/2019-03-21.20-29-01'
zigbee2mqtt:info 3/21/2019, 8:29:01 PM Starting zigbee2mqtt version 1.2.1 (commit #4048cb8)
zigbee2mqtt:info 3/21/2019, 8:29:01 PM Starting zigbee-shepherd
zigbee2mqtt:info 3/21/2019, 8:29:06 PM zigbee-shepherd started
zigbee2mqtt:info 3/21/2019, 8:29:06 PM Coordinator firmware version: '20190223'

zigbee2mqtt:info 3/21/2019, 8:30:28 PM New device 'undefined' with address 0x00158d0001c98215 connected!
zigbee2mqtt:info 3/21/2019, 8:30:28 PM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":"0x00158d0001c98215","meta":{}}'
zigbee2mqtt:warn 3/21/2019, 8:30:28 PM Device with modelID 'undefined' is not supported.
zigbee2mqtt:warn 3/21/2019, 8:30:28 PM Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html
zigbee2mqtt:info 3/21/2019, 8:30:28 PM MQTT publish: topic 'zigbee2mqtt/0x00158d0001c98215', payload '{"state":"ON","linkquality":52}'
zigbee2mqtt:info 3/21/2019, 8:30:29 PM MQTT publish: topic 'zigbee2mqtt/0x00158d0001c98215', payload '{"state":"ON","linkquality":28,"brightness":254}'
zigbee2mqtt:info 3/21/2019, 8:30:29 PM MQTT publish: topic 'zigbee2mqtt/0x00158d0001c98215', payload '{"state":"ON","linkquality":31,"brightness":254,"color_temp":370,"color_mode":2,"color":{"x":0.458,"y":0.41}}'
zigbee2mqtt:info 3/21/2019, 8:30:59 PM Device incoming...
zigbee2mqtt:info 3/21/2019, 8:30:59 PM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'

When I check https://github.com/Koenkk/zigbee-shepherd-converters/blob/master/devices.js I see it listed.

Is there anything I should still do?

Thanks

Coordinator firmware device limits

Hello,

What's the limit of the 3 firmwares found in the sourcecode ?
Here is written: ~16 devices and ~16 routers for the classic version and 44 devices and 1 router for the alternate version on a single CC2531

If I understand well:
NWK_MAX_DEVICE_LIST = number of total devices
MAX_NEIGHBOR_ENTRIES = number of routers

Questions:
Does a router connected to another router counts as a neighbor (indirect neighbor)?
Does a router counts as a device ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.