Search found 3 matches

by roc
2023年 Dec 21日 11:00
Forum: TuyaOS-Gateway&Central Control Device Development
Topic: Introduction to Automatic Association of Bluetooth Sub-devices with Gateways
Replies: 0
Views: 858

Introduction to Automatic Association of Bluetooth Sub-devices with Gateways

Introduction Tuya Bluetooth sub-devices support activation, connection, and control through both mobile Bluetooth and gateway Bluetooth channels. If a sub-device is activated via mobile Bluetooth and the user wishes to control it remotely through a gateway, the sub-device needs to be associated wit...
by roc
2023年 Dec 20日 19:29
Forum: TuyaOS-网关中控开发
Topic: 【分享】蓝牙子设备自动关联网关介绍
Replies: 0
Views: 921

【分享】蓝牙子设备自动关联网关介绍

简介 涂鸦蓝牙子设备支持通过手机蓝牙和网关蓝牙双通道进行激活、连接及控制。如果子设备是通过手机蓝牙激活的,想要通过网关进行远程控制,那么就需要把子设备关联到某个网关。涂鸦智能家居平台支持自动关联能力,即子设备通过手机蓝牙激活,可以自动关联到网关,省去用户手动关联的操作步骤; 自动关联场景 涂鸦蓝牙子设备根据不同应用协议,分为sigmesh子设备,BLE单点子设备和tuya beacon mesh子设备;sigmesh子设备和tuya beacon mesh的自动关联场景一致,BLE单点因为不支持中继的原因,自动关联处理场景有所不同,下面就以sigmesh子设备和BLE单点子设备为例,介绍各场...
by roc
2022年 Dec 12日 16:28
Forum: TuyaOS-网关中控开发
Topic: 【分享】网关下ble mesh子设备(新)离在线机制
Replies: 0
Views: 783

【分享】网关下ble mesh子设备(新)离在线机制

1、查询设备判离线 设定最大超时离线时间(默认8小时),以及最大查询次数(默认2次),如果子设备数量小于等于2个,设定最大查询次数为5次(设备少的时候其他设备无转发或转发少,丢包率会比较高导致误判); 令最大超时时间为T,最大查询次数为M,设备数量为N,查询间隔为INTV,则计算公式如下: 查询间隔:INTV = T/M/N ; 离线时间:Toff = INTV * (N * M - 1) ~ INTV * M *N; 离线时间表如下: 122221.png 2、设备上线 网关收到设备任何报文,如果当前状态是离线的,则置为在线; 3、假离线 设备真实在线,但是APP上看到状态是离线,即设备假离...