Closed lattice0 closed 9 months ago
By the way, would it make sense to create an Enum with cluster codes and another with profile codes, with Into and TryFrom implementations?
Yes, those messages seems strange. Maybe the data has an offset. I believe that a protocol_version of 14 is invalid, it should be 0x02. Profile 0x0000 and Cluster 0x340b?
It makes sense to have some kind of register for the cluster library (ZCL). For a while I tried to generate code from XML. Like, https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/general.xml
I hacked together a listener for ESP32C6 which can parse network headers. See esp32-psila.
Thanks, I didn't know this:
let size = usize::from(received.data[0]);
let _rssi = usize::from(received.data[size]);
let part = &received.data[1..(size - 1)];
so I war trying to parse the entire thing. Didn't read specs yet, neither my sniffer arrived for wireshark debugging.
off topic: are you getting rust-analyzer to work, in case you use vscode?
off topic: what is missing so I can use this to create a zigbee device for my tuya network?
If my example resolves your problem, can we close the issue?
I just got a esp32 and when interpreting the mac frame with psila, I get packets with strange cluster and profile numbers:
which when converted to hexadecimal have nothing to do with the cluster and profiles listed on zigbee's documentation. Is it possible that this library is just interpreting random stuff as an APS header? I'm still waiting for my sniffer to arrive so I can look better on wireshark.