Page 2 of 2

Re: sensor device connection with STM32WB and zigbee

Posted: 2024年 Jan 4日 15:47
by eskomj

Is there any documentation what I need for that? Do I have to do something in iot.tuya.com? I started this way:

co2_sensor.png

Re: sensor device connection with STM32WB and zigbee

Posted: 2024年 Jan 4日 16:08
by iot_man

Re: sensor device connection with STM32WB and zigbee

Posted: 2024年 Jan 4日 16:17
by eskomj

I red that and there is said:
"Hardware-based connectivity is implemented with TuyaOS or MCU integration protocol derived from TuyaOS" and
"The original Self-Developed Module SDK and Tuya Standard Module SDK are merged into TuyaOS."

I try to find "Self-Developed module SDK" documentation. I'll follow that link:
https://www.tuya.com/platform/productde ... ub-devices

I think, that is what I need, but it is written in chinese. Could you give link for english version?
https://developer.tuya.com/cn/docs/iot/ ... k6zvqiljjh


Re: sensor device connection with STM32WB and zigbee

Posted: 2024年 Jan 4日 16:27
by eskomj

I found english version. I just replaced "cn" in url with "en".


Re: sensor device connection with STM32WB and zigbee

Posted: 2024年 Jan 5日 17:50
by eskomj

Hello,
How should I do binding? I try to follow this:
https://wiki.st.com/stm32mcu/wiki/Conne ... ee_Binding


Re: sensor device connection with STM32WB and zigbee

Posted: 2024年 Jan 31日 17:05
by eskomj

Now problem is that there is some basic cluster attribute which is Tuya's own private attribute. We get now error:
[M0] [00000000.982][PLATFORM] ZbZclAttrWrite : Failed to write cl = 0x0000, attr = 0xffde (cannot find attribute)

Where that attribute is documented? I found something from these links:
viewtopic.php?p=8322&hilit=0xffde#p8322
https://github.com/zigbeefordomoticz/wi ... 61-eTRV.md

Tuya gateway wants to write into basic clusters attribute 0xffde, which we haven't now?


Re: sensor device connection with STM32WB and zigbee

Posted: 2024年 Jan 31日 17:41
by zeso

Actually,developer do not need to be concerned about Tuya-defined pravite attributes of basic cluster if your device accessed as a three-party device.


Re: sensor device connection with STM32WB and zigbee

Posted: 2024年 Jan 31日 23:59
by eskomj

So the error is now that some of the basic attributes is so that gateway believes that end device is not third party device? Which of attributes tells that? Is it modeId? Basic attribute request asks these values:

Attribute: Manufacturer Name (0x0004)
Attribute: ZCL Version (0x0000)
Attribute: Application Version (0x0001)
Attribute: Model Identifier (0x0005)
Attribute: Power Source (0x0007)
Attribute: Unknown (0xfffe)


Re: sensor device connection with STM32WB and zigbee

Posted: 2024年 Feb 29日 15:34
by eskomj

I got joining to the network working, but I can't see any binding request. Does Tuya zigbee use binding at all? I found active endpoint request. Is it used instead of binding? Gateway sends the active endpoint request.


Re: sensor device connection with STM32WB and zigbee

Posted: 2024年 Mar 12日 15:07
by eskomj

Hello,

Question about the device id. Where to it shoud be set and at which point it is told to gateway? For example temperature sensor's device id is like that:
Device ID 0x0302

I suppose, it is set when cluster is created?