TI中文支持网
TI专业的中文技术问题搜集分享网站

ZLL 色溫功能 zclLighting_ColorControl_Send_MoveToColorTemperatureCmd

HI 各位大神,

想请问一下目前在做色温项目

且根据爬文指出的zclLighting_ProcessInCmd_ColorControl_MoveToColorTemperature当成 feedback

用zclLighting_ColorControl_Send_MoveToColorTemperatureCmd去呼叫它

 

case TURN_HUE_TEMPERATURE_COLOR: 

{
uint16 converted_input_TC = 0x0000;
switch (SerialApp_Buf[5]) //Convert 'L','M','H','F' to byte 16 bits TEMPERTURE_COLOR input
{
case 'L':
{converted_input_TC = 0x0898;} //DEC 2200K?
break;
case 'M':
{converted_input_TC = 0x0CE4;} //DEC 3300K?
break;
case 'H':
{converted_input_TC = 0x1388;} //DEC 5000K?
break;
case 'F':
{converted_input_TC = 0xfe00;}
break;
}
if(zclLighting_ColorControl_Send_MoveToColorTemperatureCmd(SAMPLEBRIDGE_ENDPOINT, &afAddType_jo,
converted_input_TC, SAMPLEREMOTE_CMD_TRANS_TIME,
FALSE, sampleRemoteSeqNum++ ) == afStatus_SUCCESS)
{
{
HalUARTWrite(0, "Temperature color:", 18);
HalUARTWrite(0, &SerialApp_Buf[5], 1);
HalUARTWrite(0, "\n", 1);
}

}

 

试过其他饱和度, Move_to_Hue等等功能都是没问题的,

尝试debug数值变化正确的,

并想请问 只看到色温的最大值 #define LIGHTING_COLOR_TEMPERATURE_MAX   0xfeff

如果跟实际色温数值对应

或在哪些文件可以查的到 谢谢

 

Regards,

Joseph

 

Viki Shi:

这个得查ZigBee Cluster Library Specification文件

TI 诚邀您参加全新设计的产品页面测试,参加测试即可享有 TI 购物 9 折优惠码,点击加入 EP产品页面测试报名,名额有限。感谢您的参与!

YiKai Chen:

可以參考ZCL SPEC.

赞(0)
未经允许不得转载:TI中文支持网 » ZLL 色溫功能 zclLighting_ColorControl_Send_MoveToColorTemperatureCmd
分享到: 更多 (0)