mirror of https://github.com/arendst/Tasmota.git
Support EZSP v6.8
This commit is contained in:
parent
27caccf7a0
commit
0ec5ae818a
|
@ -649,7 +649,9 @@ ZBM(ZBS_SET_NETWORKS, EZSP_setConfigurationValue, 0x00 /*high*/, EZSP_CONFIG
|
|||
ZBM(ZBS_SET_PACKET_BUF, EZSP_setConfigurationValue, 0x00 /*high*/, EZSP_CONFIG_PACKET_BUFFER_COUNT, 0xFF, 0x00) // 530001FF00
|
||||
|
||||
ZBM(ZBR_SET_OK, EZSP_setConfigurationValue, 0x00 /*high*/, 0x00 /*ok*/) // 530000
|
||||
ZBM(ZBR_SET_OK2, 0x00, 0x00 /*high*/, 0x00 /*ok*/) // 000000 - TODO why does setting EZSP_CONFIG_PACKET_BUFFER_COUNT has a different response?
|
||||
// There is a bug in v6.7 where the response if 000000 instead of 530000
|
||||
// If we detect the version to be v6.7, the first byte is changed to 00
|
||||
ZBR(ZBR_SET_OK2, EZSP_setConfigurationValue, 0x00 /*high*/, 0x00 /*ok*/)
|
||||
|
||||
// Read some configuration values
|
||||
// ZBM(ZBS_GET_APS_UNI, EZSP_getConfigurationValue, 0x00 /*high*/, EZSP_CONFIG_APS_UNICAST_MESSAGE_COUNT) // 520003
|
||||
|
|
|
@ -396,6 +396,10 @@ int32_t EZ_ReceiveCheckVersion(int32_t res, class SBuffer &buf) {
|
|||
MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_TELE, PSTR(D_JSON_ZIGBEE_STATE));
|
||||
|
||||
if (0x08 == protocol_version) {
|
||||
if ((stack_version & 0xFF00) == 0x6700) {
|
||||
// If v6.7 there is a bug so we need to change the response
|
||||
ZBW(ZBR_SET_OK2, 0x00, 0x00 /*high*/, 0x00 /*ok*/)
|
||||
}
|
||||
return 0; // protocol v8 is ok
|
||||
} else {
|
||||
return ZIGBEE_LABEL_UNSUPPORTED_VERSION; // abort
|
||||
|
|
Loading…
Reference in New Issue