Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Z-Stack 3 on CC2652R/CC1352P adventures #1429

Open
Koenkk opened this issue Apr 14, 2019 · 698 comments
Open

Z-Stack 3 on CC2652R/CC1352P adventures #1429

Koenkk opened this issue Apr 14, 2019 · 698 comments

Comments

@Koenkk
Copy link
Owner

@Koenkk Koenkk commented Apr 14, 2019

Texas Instruments has recently released a new high performance Zigbee chip: the CC2652R. This chip is much faster and contains much more memory than the CC2530/CC2531.

This issue is created in order to gather feedback of users using the CC2652R AND Z-Stack 3.0 (= Zigbee 3.0)

Notes

  • The device can be bought here: http://www.ti.com/tool/launchxl-cc26x2r1
  • No additional flashing hardware is needed, it has an on-board programmer (no CC debugger needed).
  • The board has +- the size of a Raspberry Pi
  • Zigbee 3.0!
  • Flash using Flash Programmer v2
  • Firmware can be found here in the bin folder: https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0
  • It's not possible to migrate your Zigbee 1.2 network (requires repairing)
  • The network restore trick that we used in Zigbee 1.2 doesn't work anymore (due to better security policies). A backup of the CC2652R is taken at every shutdown of zigbee2mqtt, file can be found under data/coordinator_backup.json. This backup is automatically restored when starting with a new flashed CC2652R.
  • Requires latest zigbee2mqtt dev branch.
@JLFN

This comment has been minimized.

Copy link
Contributor

@JLFN JLFN commented Apr 14, 2019

@Koenkk can this board be bought from inside of Europe? I need to pay extra taxes if bought outside.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

@Koenkk Koenkk commented Apr 14, 2019

@JLFN mine shipped from the Netherlands.

@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 14, 2019

mine too
I was able to flash it with uniflash on linux.

@JLFN

This comment has been minimized.

Copy link
Contributor

@JLFN JLFN commented Apr 14, 2019

@JLFN mine shipped from the Netherlands.

Can you please give me link of the page where you bought it from that shipped from the NL.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

@Koenkk Koenkk commented Apr 14, 2019

@JLFN just from TI.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

@Koenkk Koenkk commented Apr 14, 2019

The Xiaomi end device undefined model ID issue had nothing to do with the CC2652R, it was actually a zigbee2mqtt bug, fixed in latest dev branch.

@dh-harald

This comment has been minimized.

Copy link

@dh-harald dh-harald commented Apr 15, 2019

I've got mine today morning (from NL as well). Today, there will be a big migration project :)

@tunip

This comment has been minimized.

Copy link

@tunip tunip commented Apr 15, 2019

Before I also "jump on the adventure train", I have 2 questions.

  1. Range
    Could someone rate the range of this device? Could we connect a antenna to increase the range?

  2. Router
    Is this device only for a coordinator role? Or would we see also in the future a router firmware?

Thx

@salopette

This comment has been minimized.

Copy link

@salopette salopette commented Apr 15, 2019

Hello, does that part have an antenna? What is the range of that? and pays off the switch from cc2531 to cc2652r ????

@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 15, 2019

@salopette it has a pcb antenna and an unconnected connector, see https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/t/723337

@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 15, 2019

I only have osram plugs and aqara devices, aqara temp/humidity sensors are mostly ok to rebind, but it's not as straightforward for the other ones.
for instance, I haven't been able to pair MCCGQ01LM, MFKZQ01LM and DJT11LM devices yet.

@dh-harald

This comment has been minimized.

Copy link

@dh-harald dh-harald commented Apr 15, 2019

I'm done with re-pairing... Looks good... Re-pairing done with QBKG11LM, QBKG04LM, RTCGQ11LM, GL-C-008, E1746. Link qualities are better than CC2531.

@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 15, 2019

i've been able to pair MCCGQ01LM, MFKZQ01LM and DJT11LM, but still there's something very wrong with aqara devices.
With the aqara gateway and another alternative gw (zigate), the pairing action is very straightforward, it only needs one action on the device, with those 3 models I had to do something like pressing the pairing button several times per second after the initial long press action, worst was DJT11LM

@Koenkk

This comment has been minimized.

Copy link
Owner Author

@Koenkk Koenkk commented Apr 16, 2019

@dh-harald do you see big improvements in link quality?

@dh-harald

This comment has been minimized.

Copy link

@dh-harald dh-harald commented Apr 16, 2019

@Koenkk with CC2531, I had 50-70 link quality, not I've 100-120.

@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 16, 2019

This morning it looked like my cc2652 had crashed. z2m wasn't able to use its serial port anymore. Had to restart rpi. Most of the pairings have been lost.

Link quality looks also better than what I had with cheap cc2530+cc2591.

@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 16, 2019

@tunip range looks better, antenna should be possible as there's a connector.
router should be doable, but currently the changes to build a router firmware are closed-source.

@dh-harald

This comment has been minimized.

Copy link

@dh-harald dh-harald commented Apr 16, 2019

This morning it looked like my cc2652 had crashed. z2m wasn't able to use its serial port anymore. Had to restart rpi. Most of the pairings have been lost.

I've something similar ATM... All devices are offline, can't ping by the controller. I had it yesterday, I needed to disconnect it from usb (poweroff)... Now I'm not at home, so I need to figure out, how I can disconect it from remote :(

@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 16, 2019

@dh-harald if it was connected to a PC, I would try to use uniflash to reset the board.
Myself i need to find a way to program the board on the rpi from my linux pc, I'll give a try to ser2net+socat.

@dh-harald

This comment has been minimized.

Copy link

@dh-harald dh-harald commented Apr 16, 2019

@dh-harald if it was connected to a PC, I would try to use uniflash to reset the board.
Myself i need to find a way to program the board from my linux pc, I'll give a try to ser2net+socat.

It's an arm64 box, so I'm afraid, I can't run uniflash on it :(
But if you can figure out, please share the solution :)

@dh-harald

This comment has been minimized.

Copy link

@dh-harald dh-harald commented Apr 16, 2019

@tunip I already tried them, but it didn't work.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

@Koenkk Koenkk commented Apr 16, 2019

Mine also crashed after 2 days (Request timeout errors)

@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 16, 2019

the mqtt messages with empty action are not related to cc2652, are they ?

  serialport/stream binding.read finished +1ms
  cc-znp { sof: 254,
  cc-znp   len: 28,
  cc-znp   type: 'AREQ',
  cc-znp   subsys: 'AF',
  cc-znp   cmd: 'incomingMsg',
  cc-znp   payload:
  cc-znp    { groupid: 0,
  cc-znp      clusterid: 18,
  cc-znp      srcaddr: 64732,
  cc-znp      srcendpoint: 2,
  cc-znp      dstendpoint: 1,
  cc-znp      wasbroadcast: 0,
  cc-znp      linkquality: 108,
  cc-znp      securityuse: 0,
  cc-znp      timestamp: 5007337,
  cc-znp      transseqnumber: 0,
  cc-znp      len: 8,
  cc-znp      data: <Buffer 18 38 0a 55 00 21 02 00> },
  cc-znp   fcs: 97,
  cc-znp   csum: 97 } +21ms
  serialport/stream _read reading +18ms
  serialport/binding-abstract read +19ms
  serialport/bindings/unixRead Starting read +18ms
  cc-znp:AREQ <-- AF:incomingMsg, { groupid: 0, clusterid: 18, srcaddr: 64732, srcendpoint: 2, dstendpoint: 1, wasbroadcast: 0, linkquality: 108, securityuse: 0, timestamp: 5007337, transseqnumber: 0, len: 8, data: <Buffer 18 38 0a 55 00 21 02 00> } +35ms
  zigbee-shepherd:af dispatchIncomingMsg(): type: incomingMsg, msg: {"groupid":0,"clusterid":18,"srcaddr":64732,"srcendpoint":2,"dstendpoint":1,"wasbroadcast":0,"linkquality":108,"securityuse":0,"timestamp":5007337,"transseqnumber":0,"len":8,"data":{"type":"Buffer","data":[24,56,10,85,0,33,2,0]}} +126ms
  zigbee-shepherd:msgHdlr IND <-- AF:incomingMsg, transId: 0 +39ms
  serialport/bindings/unixRead waiting for readable because of code: EAGAIN +6ms
  serialport/bindings/poller Polling for "readable" +27ms
  zigbee-shepherd:af dispatchIncomingMsg(): type: zclIncomingMsg, msg: {"groupid":0,"clusterid":18,"srcaddr":64732,"srcendpoint":2,"dstendpoint":1,"wasbroadcast":0,"linkquality":108,"securityuse":0,"timestamp":5007337,"transseqnumber":0,"len":8,"data":{"0":24,"1":56,"2":10,"3":85,"4":0,"5":33,"6":2,"7":0},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":56,"cmdId":"report","payload":[{"attrId":85,"dataType":33,"attrData":2}]}} +5ms
  zigbee2mqtt:debug 4/16/2019, 8:13:05 PM Received zigbee message of type 'attReport' with data '{"cid":"genMultistateInput","data":{"presentValue":2}}' of device 'lumi.sensor_cube' (cube_02) of endpoint 2
  zigbee2mqtt:info 4/16/2019, 8:13:05 PM MQTT publish: topic 'zigbee2mqtt/cube_02', payload '{"action":"wakeup","linkquality":108,"last_seen":1555438385033,"elapsed":813581}'
  zigbee2mqtt:info 4/16/2019, 8:13:05 PM MQTT publish: topic 'zigbee2mqtt/cube_02', payload '{"action":""}'
@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 16, 2019

another funny issue with a door window sensor, and I haven't touched the pair button, I was just playing with a magnet. In the end the device is removed from the network

  serialport/stream binding.read finished +10ms                                                                                                                                                                    │
  cc-znp { sof: 254,                                                                                                                                                                                               │
  cc-znp   len: 27,                                                                                                                                                                                                │
  cc-znp   type: 'AREQ',                                                                                                                                                                                           │
  cc-znp   subsys: 'AF',                                                                                                                                                                                           │
  cc-znp   cmd: 'incomingMsg',                                                                                                                                                                                     │
  cc-znp   payload:                                                                                                                                                                                                │
  cc-znp    { groupid: 0,                                                                                                                                                                                          │
  cc-znp      clusterid: 6,                                                                                                                                                                                        │
  cc-znp      srcaddr: 33589,                                                                                                                                                                                      │
  cc-znp      srcendpoint: 1,                                                                                                                                                                                      │
  cc-znp      dstendpoint: 1,                                                                                                                                                                                      │
  cc-znp      wasbroadcast: 0,                                                                                                                                                                                     │
  cc-znp      linkquality: 135,                                                                                                                                                                                    │
  cc-znp      securityuse: 0,                                                                                                                                                                                      │
  cc-znp      timestamp: 7527883,                                                                                                                                                                                  ┤
  cc-znp      transseqnumber: 0,                                                                                                                                                                                   │
  cc-znp      len: 7,                                                                                                                                                                                              │
  cc-znp      data: <Buffer 18 12 0a 00 00 10 00> },                                                                                                                                                               │
  cc-znp   fcs: 49,                                                                                                                                                                                                │
  cc-znp   csum: 49 } +18ms                                                                                                                                                                                        │
  cc-znp { sof: 254,                                                                                                                                                                                               │
  cc-znp   len: 27,                                                                                                                                                                                                │
  cc-znp   type: 'AREQ',                                                                                                                                                                                           │
  cc-znp   subsys: 'AF',                                                                                                                                                                                           │
  cc-znp   cmd: 'incomingMsg',                                                                                                                                                                                     │
  cc-znp   payload:                                                                                                                                                                                                │
  cc-znp    { groupid: 0,                                                                                                                                                                                          │
  cc-znp      clusterid: 6,                                                                                                                                                                                        │
  cc-znp      srcaddr: 33589,                                                                                                                                                                                      │
  cc-znp      srcendpoint: 1,                                                                                                                                                                                      │
  cc-znp      dstendpoint: 1,                                                                                                                                                                                      │
  cc-znp      wasbroadcast: 0,                                                                                                                                                                                     │
  cc-znp      linkquality: 126,                                                                                                                                                                                    │
  cc-znp      securityuse: 0,                                                                                                                                                                                      │
  cc-znp      timestamp: 7574573,                                                                                                                                                                                  │
  cc-znp      transseqnumber: 0,                                                                                                                                                                                   │
  cc-znp      len: 7,                                                                                                                                                                                              │
  cc-znp      data: <Buffer 18 13 0a 00 00 10 01> },                                                                                                                                                               │
  cc-znp   fcs: 102,                                                                                                                                                                                               │
  cc-znp   csum: 102 } +8ms                                                                                                                                                                                        │
  cc-znp { sof: 254,                                                                                                                                                                                               │
  cc-znp   len: 27,                                                                                                                                                                                                │
  cc-znp   type: 'AREQ',                                                                                                                                                                                           │
  cc-znp   subsys: 'AF',                                                                                                                                                                                           │
  cc-znp   cmd: 'incomingMsg',                                                                                                                                                                                     │
  cc-znp   payload:                                                                                                                                                                                                │
  cc-znp    { groupid: 0,                                                                                                                                                                                          │
  cc-znp      clusterid: 6,                                                                                                                                                                                        │
  cc-znp      srcaddr: 33589,                                                                                                                                                                                      │
  cc-znp      srcendpoint: 1,                                                                                                                                                                                      │
  cc-znp      dstendpoint: 1,                                                                                                                                                                                      │
  cc-znp      wasbroadcast: 0,                                                                                                                                                                                     │
  cc-znp      linkquality: 117,                                                                                                                                                                                    │
  cc-znp      securityuse: 0,                                                                                                                                                                                      │
  cc-znp      timestamp: 7594239,                                                                                                                                                                                  │
  cc-znp      transseqnumber: 0,                                                                                                                                                                                   │
  cc-znp      len: 7,                                                                                                                                                                                              │
  cc-znp      data: <Buffer 18 14 0a 00 00 10 00> },                                                                                                                                                               │
  cc-znp   fcs: 205,                                                                                                                                                                                               ┤
  cc-znp   csum: 205 } +15ms                                                                                                                                                                                       ┤
  serialport/stream _read reading +31ms                                                                                                                                                                            │
  serialport/binding-abstract read +42ms                                                                                                                                                                           │
  serialport/bindings/unixRead Starting read +33ms                                                                                                                                                                 │
  zigbee-shepherd:af dispatchIncomingMsg(): type: zclIncomingMsg, msg: {"groupid":0,"clusterid":1030,"srcaddr":28406,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":117,"securityuse":0,"timestamp"│
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":1}}' of device 'lumi.sensor_motion' (0xmotion_sensor_01) of endpoi│
  zigbee2mqtt:info 4/16/2019, 8:43:08 PM MQTT publish: topic 'zigbee2mqtt/motion_sensor_01', payload '{"occupancy":true,"linkquality":117,"last_seen":1555440188148,"elapsed":82240}'                              │
  cc-znp:AREQ <-- AF:incomingMsg, { groupid: 0, clusterid: 6, srcaddr: 33589, srcendpoint: 1, dstendpoint: 1, wasbroadcast: 0, linkquality: 135, securityuse: 0, timestamp: 7527883, transseqnumber: 0, len: 7, dat│
  zigbee-shepherd:af dispatchIncomingMsg(): type: incomingMsg, msg: {"groupid":0,"clusterid":6,"srcaddr":33589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":135,"securityuse":0,"timestamp":75278│
  zigbee-shepherd:msgHdlr IND <-- AF:incomingMsg, transId: 0 +54ms                                                                                                                                                 │
  cc-znp:AREQ <-- AF:incomingMsg, { groupid: 0, clusterid: 6, srcaddr: 33589, srcendpoint: 1, dstendpoint: 1, wasbroadcast: 0, linkquality: 126, securityuse: 0, timestamp: 7574573, transseqnumber: 0, len: 7, dat│
  zigbee-shepherd:af dispatchIncomingMsg(): type: incomingMsg, msg: {"groupid":0,"clusterid":6,"srcaddr":33589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":126,"securityuse":0,"timestamp":75745│
  zigbee-shepherd:msgHdlr IND <-- AF:incomingMsg, transId: 0 +7ms                                                                                                                                                  │
  cc-znp:AREQ <-- AF:incomingMsg, { groupid: 0, clusterid: 6, srcaddr: 33589, srcendpoint: 1, dstendpoint: 1, wasbroadcast: 0, linkquality: 117, securityuse: 0, timestamp: 7594239, transseqnumber: 0, len: 7, dat│
  zigbee-shepherd:af dispatchIncomingMsg(): type: incomingMsg, msg: {"groupid":0,"clusterid":6,"srcaddr":33589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":117,"securityuse":0,"timestamp":75942│
  zigbee-shepherd:msgHdlr IND <-- AF:incomingMsg, transId: 0 +7ms                                                                                                                                                  │
  serialport/bindings/unixRead Finished read 74 bytes +38ms                                                                                                                                                        │
  serialport/stream binding.read finished +39ms                                                                                                                                                                    │
  cc-znp { sof: 254,                                                                                                                                                                                               │
  cc-znp   len: 37,                                                                                                                                                                                                │
  cc-znp   type: 'AREQ',                                                                                                                                                                                           ┤
  cc-znp   subsys: 'AF',                                                                                                                                                                                           │
  cc-znp   cmd: 'incomingMsg',                                                                                                                                                                                     │
  cc-znp   payload:                                                                                                                                                                                                │
  cc-znp    { groupid: 0,                                                                                                                                                                                          │
  cc-znp      clusterid: 0,                                                                                                                                                                                        │
  cc-znp      srcaddr: 33589,                                                                                                                                                                                      │
  cc-znp      srcendpoint: 1,                                                                                                                                                                                      │
  cc-znp      dstendpoint: 1,                                                                                                                                                                                      │
  cc-znp      wasbroadcast: 0,                                                                                                                                                                                     │
  cc-znp      linkquality: 120,                                                                                                                                                                                    │
  cc-znp      securityuse: 0,                                                                                                                                                                                      │
  cc-znp      timestamp: 7594503,                                                                                                                                                                                  │
  cc-znp      transseqnumber: 0,                                                                                                                                                                                   │
  cc-znp      len: 17,                                                                                                                                                                                             │
  cc-znp      data: <Buffer 1c 5f 11 15 0a 01 ff 42 09 04 21 a8 13 0a 21 00 00> },                                                                                                                                 │
  cc-znp   fcs: 79,                                                                                                                                                                                                │
  cc-znp   csum: 79 } +48ms                                                                                                                                                                                        │
  cc-znp { sof: 254,                                                                                                                                                                                               │
  cc-znp   len: 27,                                                                                                                                                                                                │
  cc-znp   type: 'AREQ',                                                                                                                                                                                           │
  cc-znp   subsys: 'AF',                                                                                                                                                                                           │
  cc-znp   cmd: 'incomingMsg',                                                                                                                                                                                     │
  cc-znp   payload:                                                                                                                                                                                                │
  cc-znp    { groupid: 0,                                                                                                                                                                                          │
  cc-znp      clusterid: 6,                                                                                                                                                                                        │
  cc-znp      srcaddr: 33589,                                                                                                                                                                                      │
  cc-znp      srcendpoint: 1,                                                                                                                                                                                      │
  cc-znp      dstendpoint: 1,                                                                                                                                                                                      │
  cc-znp      wasbroadcast: 0,                                                                                                                                                                                     │
  cc-znp      linkquality: 123,                                                                                                                                                                                    │
  cc-znp      securityuse: 0,                                                                                                                                                                                      │
  cc-znp      timestamp: 7599348,                                                                                                                                                                                  │
  cc-znp      transseqnumber: 0,                                                                                                                                                                                   │
  cc-znp      len: 7,                                                                                                                                                                                              │
  cc-znp      data: <Buffer 18 16 0a 00 00 10 01> },                                                                                                                                                               │
  cc-znp   fcs: 223,                                                                                                                                                                                               │
  cc-znp   csum: 223 } +9ms                                                                                                                                                                                        │
  serialport/stream _read reading +18ms                                                                                                                                                                            │
  serialport/binding-abstract read +56ms                                                                                                                                                                           │
  serialport/bindings/unixRead Starting read +18ms                                                                                                                                                                 │
  zigbee-shepherd:af dispatchIncomingMsg(): type: zclIncomingMsg, msg: {"groupid":0,"clusterid":6,"srcaddr":33589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":135,"securityuse":0,"timestamp":75┤
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'attReport' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'lumi.sensor_magnet.aq2' (0xdoor_window_sensor_04) of endpoint 1 │
  zigbee2mqtt:info 4/16/2019, 8:43:08 PM MQTT publish: topic 'zigbee2mqtt/door_window_sensor_04', payload '{"contact":true,"linkquality":135,"last_seen":1555440188206,"elapsed":23558}'                           │
  zigbee-shepherd:af dispatchIncomingMsg(): type: zclIncomingMsg, msg: {"groupid":0,"clusterid":6,"srcaddr":33589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":126,"securityuse":0,"timestamp":75│
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'attReport' with data '{"cid":"genOnOff","data":{"onOff":1}}' of device 'lumi.sensor_magnet.aq2' (0xdoor_window_sensor_04) of endpoint 1 │
  zigbee2mqtt:info 4/16/2019, 8:43:08 PM MQTT publish: topic 'zigbee2mqtt/door_window_sensor_04', payload '{"contact":false,"linkquality":126,"last_seen":1555440188217,"elapsed":11}'                             │
  zigbee-shepherd:af dispatchIncomingMsg(): type: zclIncomingMsg, msg: {"groupid":0,"clusterid":6,"srcaddr":33589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":117,"securityuse":0,"timestamp":75│
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'attReport' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'lumi.sensor_magnet.aq2' (0xdoor_window_sensor_04) of endpoint 1 │
  zigbee2mqtt:info 4/16/2019, 8:43:08 PM MQTT publish: topic 'zigbee2mqtt/door_window_sensor_04', payload '{"contact":true,"linkquality":117,"last_seen":1555440188229,"elapsed":12}'                              │
  cc-znp:AREQ <-- AF:incomingMsg, { groupid: 0, clusterid: 0, srcaddr: 33589, srcendpoint: 1, dstendpoint: 1, wasbroadcast: 0, linkquality: 120, securityuse: 0, timestamp: 7594503, transseqnumber: 0, len: 17, da│
  zigbee-shepherd:af dispatchIncomingMsg(): type: incomingMsg, msg: {"groupid":0,"clusterid":0,"srcaddr":33589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":120,"securityuse":0,"timestamp":75945│
  zigbee-shepherd:msgHdlr IND <-- AF:incomingMsg, transId: 0 +62ms                                                                                                                                                 │
  cc-znp:AREQ <-- AF:incomingMsg, { groupid: 0, clusterid: 6, srcaddr: 33589, srcendpoint: 1, dstendpoint: 1, wasbroadcast: 0, linkquality: 123, securityuse: 0, timestamp: 7599348, transseqnumber: 0, len: 7, dat│
  zigbee-shepherd:af dispatchIncomingMsg(): type: incomingMsg, msg: {"groupid":0,"clusterid":6,"srcaddr":33589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":123,"securityuse":0,"timestamp":75993│
  zigbee-shepherd:msgHdlr IND <-- AF:incomingMsg, transId: 0 +4ms                                                                                                                                                  │
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'devChange' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'lumi.sensor_magnet.aq2' (0xdoor_window_sensor_04) of endpoint 1 │
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'devChange' with data '{"cid":"genOnOff","data":{"onOff":0}}' of device 'lumi.sensor_magnet.aq2' (0xdoor_window_sensor_04) of endpoint 1 │
  serialport/bindings/unixRead waiting for readable because of code: EAGAIN +52ms                                                                                                                                  │
  serialport/bindings/poller Polling for "readable" +161ms                                                                                                                                                         │
  zigbee-shepherd:af dispatchIncomingMsg(): type: zclIncomingMsg, msg: {"groupid":0,"clusterid":0,"srcaddr":33589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":120,"securityuse":0,"timestamp":75│
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":{"4":5032,"10":0}}}' of device 'lumi.sensor_magnet.aq2' (0xdoor_window_sensor_04┤
  zigbee2mqtt:info 4/16/2019, 8:43:08 PM MQTT publish: topic 'zigbee2mqtt/door_window_sensor_04', payload '{"contact":false,"linkquality":120,"last_seen":1555440188255,"elapsed":26}'                             │
  zigbee-shepherd:af dispatchIncomingMsg(): type: zclIncomingMsg, msg: {"groupid":0,"clusterid":6,"srcaddr":33589,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":123,"securityuse":0,"timestamp":75│
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'attReport' with data '{"cid":"genOnOff","data":{"onOff":1}}' of device 'lumi.sensor_magnet.aq2' (0xdoor_window_sensor_04) of endpoint 1 │
  zigbee2mqtt:info 4/16/2019, 8:43:08 PM MQTT publish: topic 'zigbee2mqtt/door_window_sensor_04', payload '{"contact":false,"linkquality":123,"last_seen":1555440188264,"elapsed":9}'                              │
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'devChange' with data '{"cid":"genBasic","data":{"65281":[null,null,null,null,5032,null,null,null,null,null,0]}}' of device 'lumi.sensor_│
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'devChange' with data '{"cid":"genOnOff","data":{"onOff":1}}' of device 'lumi.sensor_magnet.aq2' (0xdoor_window_sensor_04) of endpoint 1 │
  serialport/bindings/poller received "readable" +357ms                                                                                                                                                            │
  serialport/binding-abstract read +409ms                                                                                                                                                                          │
  serialport/bindings/unixRead Starting read +357ms                                                                                                                                                                │
  serialport/bindings/unixRead Finished read 8 bytes +0ms                                                                                                                                                          │
  serialport/stream binding.read finished +409ms                                                                                                                                                                   │
  serialport/stream _read reading +1ms                                                                                                                                                                             │
  serialport/binding-abstract read +1ms                                                                                                                                                                            │
  serialport/bindings/unixRead Starting read +1ms                                                                                                                                                                  │
  serialport/bindings/unixRead Finished read 10 bytes +0ms                                                                                                                                                         │
  serialport/stream binding.read finished +0ms                                                                                                                                                                     │
  cc-znp { sof: 254,                                                                                                                                                                                               │
  cc-znp   len: 13,                                                                                                                                                                                                │
  cc-znp   type: 'AREQ',                                                                                                                                                                                           │
  cc-znp   subsys: 'ZDO',                                                                                                                                                                                          │
  cc-znp   cmd: 'leaveInd',                                                                                                                                                                                        │
  cc-znp   payload:                                                                                                                                                                                                │
  cc-znp    { srcaddr: 33589,                                                                                                                                                                                      │
  cc-znp      extaddr: '0xdoor_window_sensor_04',                                                                                                                                                                  │
  cc-znp      request: 0,                                                                                                                                                                                          │
  cc-znp      removechildren: 0,                                                                                                                                                                                   │
  cc-znp      rejoin: 1 },                                                                                                                                                                                         │
  cc-znp   fcs: 244,                                                                                                                                                                                               │
  cc-znp   csum: 244 } +415ms                                                                                                                                                                                      │
  serialport/stream _read reading +4ms                                                                                                                                                                             │
  serialport/binding-abstract read +5ms                                                                                                                                                                            │
  serialport/bindings/unixRead Starting read +5ms                                                                                                                                                                  │
  cc-znp:AREQ <-- ZDO:leaveInd, { srcaddr: 33589, extaddr: '0xdoor_window_sensor_04', request: 0, removechildren: 0, rejoin: 1 } +374ms                                                                            │
  zigbee-shepherd Device: 0xdoor_window_sensor_04 leave the network. +1m                                                                                                                                           │
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'devLeaving' with data '"0xdoor_window_sensor_04"' of endpoint undefined                                                                 │
  zigbee2mqtt:warn 4/16/2019, 8:43:08 PM Message without device!                                                                                                                                                   │
  zigbee-shepherd:msgHdlr IND <-- ZDO:leaveInd +373ms                                                                                                                                                              │
  serialport/bindings/unixRead waiting for readable because of code: EAGAIN +4ms                                                                                                                                   │
@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 16, 2019

looks like it happens very often :-(

  zigbee2mqtt:debug 4/16/2019, 8:22:47 PM Received zigbee message of type 'devLeaving' with data '"switch_square_01"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 8:42:06 PM Received zigbee message of type 'devLeaving' with data '"0xdoor_window_sensor_05"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 8:43:08 PM Received zigbee message of type 'devLeaving' with data '"0xdoor_window_sensor_04"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 8:50:59 PM Received zigbee message of type 'devLeaving' with data '"aqara_07"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 8:57:26 PM Received zigbee message of type 'devLeaving' with data '"aqara_05"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 9:32:16 PM Received zigbee message of type 'devLeaving' with data '"0xdoor_window_sensor_06"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 9:33:26 PM Received zigbee message of type 'devLeaving' with data '"0xdoor_window_sensor_07"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 9:50:50 PM Received zigbee message of type 'devLeaving' with data '"cube_01"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 9:56:36 PM Received zigbee message of type 'devLeaving' with data '"motion_lum_02"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 10:01:48 PM Received zigbee message of type 'devLeaving' with data '"switch_02"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 10:42:33 PM Received zigbee message of type 'devLeaving' with data '"door_window_sensor_03"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 10:57:39 PM Received zigbee message of type 'devLeaving' with data '"cube_03"' of endpoint undefined
  zigbee2mqtt:debug 4/16/2019, 11:02:43 PM Received zigbee message of type 'devLeaving' with data '"switch_01"' of endpoint undefined
@Koenkk

This comment has been minimized.

Copy link
Owner Author

@Koenkk Koenkk commented Apr 17, 2019

@lolorc the empty actions are probably some converter bug. I haven't seen the dev leaving yet (and I have many Xiaomi devices)

Mine crashed again this morning, but I was able to get it working again by only replugging the CC2652R (no restart of zigbee2mqtt). Trying to catch a DEBUG=* log now.

@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 17, 2019

mine crashed as well this morning, it can't stay more than 12h without crashing. Is there a way to debug or get a crash stack from the second serial port for example ?

replugging cc2652r is not a solution when not at home, but hey it's the early alpha tests with cc2652r.

I've been running with 'DEBUG=* | tee /tmp/something' for a while now, but it's lost when rebooting, I'm now logging to a nfs server.

@lolorc

This comment has been minimized.

Copy link
Contributor

@lolorc lolorc commented Apr 17, 2019

the leaveind issues might be related to fairecasoimeme/ZiGate#38 (comment)

it wasn't happening with cc2530+firmware from end of 2018.

if you look at my logs, the leaveInd message has rejoin:1, is it normal to consider it gone ?
(unfortunatly I don't have any log from before with my cc2530)

@dzungpv

This comment has been minimized.

Copy link
Contributor

@dzungpv dzungpv commented Mar 21, 2020

Hi @dzungpv

Hi @dzungpv , I puchased a rev.e chip and asked a repair shop to replce the chip for me. The operaction is successfully and I'm now using the CC2652R1 board! Thanks again for your information!

Cheer, i guest you live in China, chip sell like snack in the market :)

@james-fry

This comment has been minimized.

Copy link

@james-fry james-fry commented Mar 21, 2020

Hi @dzungpv

Hi @dzungpv , I puchased a rev.e chip and asked a repair shop to replce the chip for me. The operaction is successfully and I'm now using the CC2652R1 board! Thanks again for your information!

Cheer, i guest you live in China, chip sell like snack in the market :)

There is no way I could get this done in a few days in London... maybe never.
Glad you got it working! Weird there are still old revision boards in the channel though.

@dzungpv

This comment has been minimized.

Copy link
Contributor

@dzungpv dzungpv commented Mar 21, 2020

Hi @dzungpv

Hi @dzungpv , I puchased a rev.e chip and asked a repair shop to replce the chip for me. The operaction is successfully and I'm now using the CC2652R1 board! Thanks again for your information!

Cheer, i guest you live in China, chip sell like snack in the market :)

There is no way I could get this done in a few days in London... maybe never.
Glad you got it working! Weird there are still old revision boards in the channel though.

I bough the kit from the early day, with hope my network stable. Today we nearly achieve it.

@iamliustar

This comment has been minimized.

Copy link

@iamliustar iamliustar commented Mar 22, 2020

Hi @dzungpv

Hi @dzungpv , I puchased a rev.e chip and asked a repair shop to replce the chip for me. The operaction is successfully and I'm now using the CC2652R1 board! Thanks again for your information!

Cheer, i guest you live in China, chip sell like snack in the market :)

There is no way I could get this done in a few days in London... maybe never.
Glad you got it working! Weird there are still old revision boards in the channel though.

I bough the kit from the early day, with hope my network stable. Today we nearly achieve it.

Thank you very much for sharing. I found that CC2652P has 19.5-dBm high-power amplifier, but it lacks some GPIO. GPIO has little effect on the coordinator. Can I directly replace 2652P on my cc2652R1 rev.c?
QQ截图20200322160936

@fredrikgk

This comment has been minimized.

Copy link

@fredrikgk fredrikgk commented Mar 22, 2020

That is not possible since the CC2652P is not pin compatible with the CC2652R.

Take a look at the datasheets for details.

@vke

This comment has been minimized.

Copy link

@vke vke commented Mar 23, 2020

Hi, does anyone know if CC1352P (THIRD PARTY MODULE like EBYTE , not TI developer board) works with Z2M?
I am a Z2M enthusiast and I has an excellent Zigbee network at home about a year, this week I have expanded my network with NUE switches and all the Zigbee network has become very buggy.
Importing anything is always a risk in my country, so it would make a lot more sense to buy just a CC1352P module and some TTL-USB converter, than a large DEV Board.

Hi, I flashed today Ebyte E79-400DM2005S with the latest firmware using J-Link - it works just fine, but I have no idea what happens with missing signal amplifiers.

Pins to flash (cc1352 <=> j-link):
VCC <=> 3.3V
GND <=> GND
TMSC <=> TMS
TCKC <=> TCK
DIO17 <=> TDI
DIO16 <=> TDO
RESET <=> RESET

Pins for UART:
DIO13 = TX (from cc1352)
DIO12 = RX (to cc1352)

@egelmex

This comment has been minimized.

Copy link

@egelmex egelmex commented Mar 23, 2020

So I got my hands on a prototype zig-a-zig-ah board. Bit of playing and it seems to be up and running on Proxmox in a LXC container. Still need to get devices joined to the network, but wrote up what I have so far. https://www.martinellis.me/posts/2020/03/zig-a-zig-ah/

@jrhbcn

This comment has been minimized.

Copy link

@jrhbcn jrhbcn commented Mar 23, 2020

So I got my hands on a prototype zig-a-zig-ah board. Bit of playing and it seems to be up and running on Proxmox in a LXC container. Still need to get devices joined to the network, but wrote up what I have so far. https://www.martinellis.me/posts/2020/03/zig-a-zig-ah/

Please do let us know how it goes. I really think that board could possible be the next CC2531 and I am following it closely. Please try to comment about new range compared to old coordinators too! thanks.

@Koenkk

This comment has been minimized.

Copy link
Owner Author

@Koenkk Koenkk commented Mar 23, 2020

I've also received a zig-a-zig-ah board. Currently testing it in my production environment but so far really impressed!

  • Small
  • Good range (it has a SMA connector so you can decide what antenna to connect)
  • Fast (because of it's CC2652R)
  • Can be flashed over USB (without additional hardware)

Picture (left CC2531, right zzh)
IMG_20200323_103201

@cocooma

This comment has been minimized.

Copy link

@cocooma cocooma commented Mar 23, 2020

May I ask where did you buy the zzh board?
Thx :)

@Koenkk

This comment has been minimized.

Copy link
Owner Author

@Koenkk Koenkk commented Mar 23, 2020

You cannot buy it yet, this is a prototype.

@egelmex

This comment has been minimized.

Copy link

@egelmex egelmex commented Mar 23, 2020

https://www.martinellis.me/posts/2020/03/pairing-devices-with-zig-a-zig-ah/

Another update, seeing similar signal quality to my old coordinator, anecdotally pairing feels faster, but that's just a gut feeling.

@Teie

This comment has been minimized.

Copy link

@Teie Teie commented Mar 27, 2020

@vke

Hi, does anyone know if CC1352P (THIRD PARTY MODULE like EBYTE , not TI developer board) works with Z2M?
...
Hi, I flashed today Ebyte E79-400DM2005S with the latest firmware using J-Link - it works just fine, but I have no idea what happens with missing signal amplifiers.

Pins to flash (cc1352 <=> j-link):
VCC <=> 3.3V
GND <=> GND
TMSC <=> TMS
TCKC <=> TCK
DIO17 <=> TDI
DIO16 <=> TDO
RESET <=> RESET

Pins for UART:
DIO13 = TX (from cc1352)
DIO12 = RX (to cc1352)

@vke
Great, this is exactly what I'm looking to do!
Can I contact you by Telegram, email, Whatsapp?
Thanks.

@Kryzek

This comment has been minimized.

Copy link
Contributor

@Kryzek Kryzek commented Mar 27, 2020

I've also received a zig-a-zig-ah board. Currently testing it in my production environment but so far really impressed!

* Small

* Good range (it has a SMA connector so you can decide what antenna to connect)

* Fast (because of it's CC2652R)

* Can be flashed over USB (without additional hardware)

Picture (left CC2531, right zzh)
IMG_20200323_103201

Just out of interest. Can you switch from TI CC2652R board to one of these bad boys after they get out to public without repairing (hopefully yes, if it's running same chip and same firmware....)?

@Koenkk

This comment has been minimized.

Copy link
Owner Author

@Koenkk Koenkk commented Mar 27, 2020

@Kryzek yes, just plug and go (not sure about migrating from a CC1352P though)

@blakadder

This comment has been minimized.

Copy link

@blakadder blakadder commented Mar 29, 2020

Hi, does anyone know if CC1352P (THIRD PARTY MODULE like EBYTE , not TI developer board) works with Z2M?
I am a Z2M enthusiast and I has an excellent Zigbee network at home about a year, this week I have expanded my network with NUE switches and all the Zigbee network has become very buggy.
Importing anything is always a risk in my country, so it would make a lot more sense to buy just a CC1352P module and some TTL-USB converter, than a large DEV Board.

Hi, I flashed today Ebyte E79-400DM2005S with the latest firmware using J-Link - it works just fine, but I have no idea what happens with missing signal amplifiers.

Pins to flash (cc1352 <=> j-link):
VCC <=> 3.3V
GND <=> GND
TMSC <=> TMS
TCKC <=> TCK
DIO17 <=> TDI
DIO16 <=> TDO
RESET <=> RESET

Pins for UART:
DIO13 = TX (from cc1352)
DIO12 = RX (to cc1352)

I presume it is required to program it first with J-Link to unlock bootoloader? Or is there an alternative?

@vke

This comment has been minimized.

Copy link

@vke vke commented Mar 29, 2020

I presume it is required to program it first with J-Link to unlock bootoloader? Or is there an alternative?

Sorry, I didn’t write very clearly. I thought that if it says that you need to connect to j-link to flash firmware, it follows from this that it should be programmed through j-link.

I don’t know about alternatives. Maybe blackmagic probe or something like that is also suitable for programming.

I'm writing Zigbee firmware for nrf52840 so I have j-link clone from China.

@Teie

This comment has been minimized.

Copy link

@Teie Teie commented Mar 29, 2020

Hi @vke .
I'm confused now.
Ebyte E79-400DM2005S + J-Link + Zstack3 firmware + some UART-USB + 3.3V is enough to build a Coordinator or not?
I'm very frustrated with the cc2531's performance after the growth of the zigbee network with the installation of the wall switches. The lighting in my house has become a mess. :(

@vke

This comment has been minimized.

Copy link

@vke vke commented Mar 29, 2020

Ebyte E79-400DM2005S + J-Link + Zstack3 firmware + some UART-USB + 3.3V is enough to build a Coordinator or not?

Yes, I'm using E79-400DM2005S (~ $4) with simple cp2102-based uart-usb adapter (~$1). E79 module is powered from cp2102 3.3v output directly.

J-Link (or equivalent) is needed only to program E79 with znp firmware.

@Teie

This comment has been minimized.

Copy link

@Teie Teie commented Mar 29, 2020

Thanks @vke and sorry to bother you again...
So, I use J-Link to flash E79 with Z-Stack 3 firmware, after that, I power on the module with some 3.3V module(in case of UART-USB not provide all the power) and "plug" an UART-USB between the module and Rasp? Is it?
Is it simples as that or I'm completely wrong?
I'm thinking that this solution is "too easy" to not be used by more people. Am I wrong?

@vke

This comment has been minimized.

Copy link

@vke vke commented Mar 29, 2020

I'm thinking that this solution is "too easy" to not be used by more people. Am I wrong?

image

cp2102 usb-uart is on other side of these color wires. That’s all you need :)

@turboproc

This comment has been minimized.

Copy link

@turboproc turboproc commented Mar 31, 2020

Almost finished design of a USB dongle to fit the module on including a USB chip (CH340E), 2 LEDs and voltage regulator. Order for first prototype will go out tonight. Also created small adaptor board to connect to a CC-DEVPACK-DEBUG board.

@turboproc

This comment has been minimized.

Copy link

@turboproc turboproc commented Apr 2, 2020

The adapter I referred to is in https://github.com/turboproc/Zigbee-dongle-adapter. Will push the dongle itself to GitHub as well.

@dzungpv

This comment has been minimized.

Copy link
Contributor

@dzungpv dzungpv commented Apr 2, 2020

The adapter I referred to is in https://github.com/turboproc/Zigbee-dongle-adapter. Will push the dongle itself to GitHub as well.

You can public more detail and pdf schematic/pcb for easier to view

@dzungpv

This comment has been minimized.

Copy link
Contributor

@dzungpv dzungpv commented Apr 2, 2020

@turboproc

This comment has been minimized.

Copy link

@turboproc turboproc commented Apr 2, 2020

@turboproc My hint: design fit this shell: https://www.aliexpress.com/item/32855419632.html

Mmmh, never thought about this. Will consider this in case I've to do a redesign of the board. Thnx for pointing me to these shells.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.