fairecasoimeme / ZiGate

Zigate is an Universal Zigbee Gateway
http://zigate.fr
171 stars 59 forks source link

Commands doc: Device announce/004D, missing "rejoin information" detail #323

Closed tcharp38 closed 3 years ago

tcharp38 commented 4 years ago

Can you please enhance the doc for "Device Announce" / "rejoin information"

Thanks

pipiche38 commented 4 years ago

There are 2 Device Announce type:

  1. which doesn't have LQI nor Rejoin value
  2. which have a LQI and rejoin Flags

So for the same Message Type: 0x004D we have :

  1. if len(MsgData) == 22 ==> No Join Flag
  2. if len(MsgData) == 24 ==> Join Flag

When receiving a Device Announcement the Rejoin Flag can give us some information

My experience is as follow:

tcharp38 commented 3 years ago

@pipiche38 How to interpret the "no rejoin info" case and do you know why I often see 2 consecutives device announce (first with rejoin 00, the 2nd without rejoin info) ? Thanks

pipiche38 commented 3 years ago

These are my interpretation. May be @fairecasoimeme could correct/complet

There are 2 types of Device Annoucement the plugin can received from firmware >= 31a (1) Device Annoucement with a JoinFlags and LQI set to 00. This one could be issued from:

(2) Device Annoucement with a valid LQI and not JoinFlag (shorter message)