中控SDK自3.9版本开始,对zigbee模块左右优化,提升了zigbee信道的利用率。但由于和之前的zibee实现方式不同,需要在应用层做以下兼容。方法如下:
在中控demo的config.json文件中,zigbee的标签下增加"dev_txt_sta": 0,即从
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
}
}
}
改为
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_sta": 0
}
}
}