Here’s the news. I started writing a small component based on the TuYa component to try to communicate with the ZT3L.
I am able to receive requests for information from the Zigbee module and respond to them, but it seems to keep requesting them over and over again. That doesn’t seem to be written that way in the specification. I wonder if the module is continuously rebooting.
When I query “Query module’s network status,” I receive a response of “0x01,” which means “Connected, indicating that the device has been added to a Zigbee network.”
I try to send 0x03 to start pairing, the zigbee module ack the request but i see nothing pairing in my zigbee2mqtt.
If I check more the information :
- If i request mode “0x00: Reset and restart” : Module ack and restart (few second with no logs) and start query again the module info in loop
- If I request mode “0x01: Leave the current network and join a new one”, module ack and I receive immediatly a network status update with “Network error.”. But when I query the network status again it’s in “Connected”.
This leads me to believe that the module keeps rebooting because it doesn’t like the response during the preliminary negotiation (product ID, etc.)?
To be continued …
[zigbee_router:070] Received frame - CMD: 0x01, SEQ: 0x005B, Data len: 0
09:32:29 [I] [zigbee_router:083] Module requesting product info (0x01)
09:32:29 [D] [uart_debug:113]<<< 55:AA:02:00:5B:01:00:00:5D
09:32:29 [I] [zigbee_router:124] Sent product info response: {"p":"fj5fqeg9","v":"1.0.0","g":1,"s":1,"lp":0}
09:32:29 [D] [uart_debug:113] >>> 55:AA:02:00:5B:01:00:2F:7B:22:70:22:3A:22:66:6A:35:66:71:65:67:39:22:2C:22:76:22:3A:22:31:2E:30:2E:30:22:2C:22:67:22:3A:31:2C:22:73:22:3A:31:2C:22:6C:70:22:3A:30:7D:2E
09:32:30 [D] [zigbee_router:070] Received frame - CMD: 0x01, SEQ: 0x005C, Data len: 0
09:32:30 [I] [zigbee_router:083] Module requesting product info (0x01)
09:32:30 [D] [uart_debug:113] <<< 55:AA:02:00:5C:01:00:00:5E
09:32:30 [I] [zigbee_router:124] Sent product info response: {"p":"fj5fqeg9","v":"1.0.0","g":1,"s":1,"lp":0}
09:32:30 [D] [uart_debug:113] >>> 55:AA:02:00:5C:01:00:2F:7B:22:70:22:3A:22:66:6A:35:66:71:65:67:39:22:2C:22:76:22:3A:22:31:2E:30:2E:30:22:2C:22:67:22:3A:31:2C:22:73:22:3A:31:2C:22:6C:70:22:3A:30:7D:2F
09:32:30 [D] [zigbee_router:170] Querying network status (0x20)
09:32:30 [D] [uart_debug:113] >>> 55:AA:02:00:5B:20:00:00:7C
09:32:30 [D] [zigbee_router:070] Received frame - CMD: 0x20, SEQ: 0x005B, Data len: 1
09:32:30 [I] [zigbee_router:088] Module responding to network status query (0x20)
09:32:30 [I] [zigbee_router:145] Zigbee module network status: CONNECTED (0x01)
09:32:30 [D] [uart_debug:113] <<< 55:AA:02:00:5B:20:00:01:01:7E
09:32:31 [D] [zigbee_router:070] Received frame - CMD: 0x01, SEQ: 0x005D, Data len: 0
09:32:31 [I] [zigbee_router:083] Module requesting product info (0x01)
.....
When I request pairing
[09:41:45.602][D][button:022]: 'Zigbee Leave Join' Pressed.
[09:41:45.607][I][zigbee_router:205]: Reset/Pairing mode requested (0x03)
[09:41:45.614][D][uart_debug:113]: >>> 55:AA:02:00:58:03:00:01:01:5E
[09:41:45.627][D][zigbee_router:070]: Received frame - CMD: 0x03, SEQ: 0x0058, Data len: 0
[09:41:45.632][D][zigbee_router:083]: Data: <empty>
[09:41:45.637][D][zigbee_router:099]: Unhandled command: 0x03
[09:41:45.642][D][zigbee_router:070]: Received frame - CMD: 0x02, SEQ: 0x028B, Data len: 1
[09:41:45.647][D][zigbee_router:081]: Data (hex): 02
[09:41:45.652][D][zigbee_router:099]: Unhandled command: 0x02
[09:41:45.747][D][uart_debug:113]: <<< 55:AA:02:00:58:03:00:00:5C:55:AA:02:02:8B:02:00:01:02:93
[09:41:45.763][D][zigbee_router:070]: Received frame - CMD: 0x01, SEQ: 0x028C, Data len: 0
[09:41:45.770][D][zigbee_router:083]: Data: <empty>
[09:41:45.780][I][zigbee_router:089]: Module requesting product info (0x01)
[09:41:45.788][D][uart_debug:113]: <<< 55:AA:02:02:8C:01:00:00:90
[09:41:45.806][I][zigbee_router:130]: Sent product info response: {"p":"fj5fqeg9","v":"1.0.0","g":1,"s":1,"lp":0}
[09:41:45.906][D][uart_debug:113]: >>> 55:AA:02:02:8C:01:00:2F:7B:22:70:22:3A:22:66:6A:35:66:71:65:67:39:22:2C:22:76:22:3A:22:31:2E:30:2E:30:22:2C:22:67:22:3A:31:2C:22:73:22:3A:31:2C:22:6C:70:22:3A:30:7D:61
[09:41:46.421][D][zigbee_router:176]: Querying network status (0x20)
[09:41:46.440][D][uart_debug:113]: >>> 55:AA:02:00:59:20:00:00:7A
[09:41:46.453][D][zigbee_router:070]: Received frame - CMD: 0x20, SEQ: 0x0059, Data len: 1
[09:41:46.460][D][zigbee_router:081]: Data (hex): 01
[09:41:46.460][I][zigbee_router:094]: Module responding to network status query (0x20)
[09:41:46.460][I][zigbee_router:151]: Zigbee module network status: CONNECTED (0x01)