Page 1 of 1

【分享】TuyaOS中控SDK3.8.1升级后zibgbee设备丢失解决方案

Posted: 2024年 Jul 2日 11:00
by lightthgil

中控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
        }
    }
}