Page 1 of 1

[Share] Solution for Zibgbee device loss after upgrading TuyaOS central control SDK 3.8.1

Posted: 2024年 Jul 3日 09:49
by lightthgil

Since version 3.9, the central control SDK has optimized the zigbee module and improved the utilization rate of the zigbee channel. However, due to the difference from the previous zibee implementation method, the following compatibility is required at the application layer. The method is as follows:
In the config.json file of the central control demo, add "dev_txt_stat": 0 under the zigbee tag, that is, from

Code: Select all

{
"pid": "xxxxxxxxxxxxxxxx",
"uuid": "xxxxxxxxxxxxxxxxxxxx",
"authkey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"storage_path": "./tuya_db_files/",
"cache_path": "/tmp/",
"sw_ver": "10.1.5",
"oem": false,
"log_level": 4,
"tuya": {
"center_ctrl":{
"img_path": "./tuya_db_files/",
"img_size": {
"width": 32,
"height": 32
}
},
"zigbee": {
"dev_name": "/dev/ttyS6",
"cts": 0,
"thread_mode": 1
}
}
}

Change to

Code: Select all

{
"pid": "xxxxxxxxxxxxxxxx",
"uuid": "xxxxxxxxxxxxxxxxxxxx",
"authkey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"storage_path": "./tuya_db_files/",
"cache_path": "/tmp/",
"sw_ver": "10.1.5",
"oem": false,
"log_level": 4,
"tuya": {
"center_ctrl":{
"img_path": "./tuya_db_files/",
"img_size": {
"width": 32,
"height": 32
}
},
"zigbee": {
"dev_name": "/dev/ttyS6",
"cts": 0,
"thread_mode": 1,
"dev_txt_stat": 0
}
}
}