JN-AN-1218-Zigbee-3-0-Light-Bulb - Change status of leb

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JN-AN-1218-Zigbee-3-0-Light-Bulb - Change status of leb

1,126 Views
minhtan_uet
Contributor III

Hi Support Team!
Please see JN-AN-1218-Zigbee-3-0-Light-Bulb!
As i understand. The led will be init in DriverBulb_vInit () and DriverBulb_DR1175.c include funtion to change status of led.
I have concern!
When i send request from "Coordiator" or "Control node - DimmerSwitch" to "Slave node" change status of led
=> How is the led is changed status? Please guide me!

Log of  "Slave node"

pastedImage_1.png

Thanks a lot!

Labels (1)
6 Replies

937 Views
minhtan_uet
Contributor III

Dear Mario
By the way. I have added new log for debug
Can you let me know What function handler this effect?

pastedImage_2.png

pastedImage_3.png
pastedImage_1.png
Many thanks!

0 Kudos

937 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Tran,

You will find that the example is calling a few times.

Example in the vAppMain(), vSetBulbState( 0,0), in the App_DimmableLight.c in the function vIdEffectTick.

Regards,

Mario

0 Kudos

937 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Tran,

Could you please look at the nex c file "C:\NXP\bstudio_nxp\sdk\JN-SW-4170\Platform\DK4\Source\LightingBoard.c"?

Regards,

Mario

0 Kudos

937 Views
minhtan_uet
Contributor III

Hi Mario
Thank for response
Actually, I wanna know flowchar from request is sent  to the status of led change.
as I see the function APP_ZCL_cbEndpointCallback() is called => I don't know why led is changed>
Please make clear for me! Thanks

0 Kudos

937 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Tran,

Please look at the callback, the switch case, file App_DimmableLight.c

GENERAL_CLUSTER_ID_ONOFF

If you are sending an On-Off command, in this case, a variable will set to TRUE.

                    bUpdateBulb = TRUE;

After that, the flow will call the set bulb state.

PUBLIC void vSetBulbState(bool bOn, uint8 u8Level)
{
    if (bOn)
    {
        vLI_Start(u8Level, 0,0,0,0);
    }
    else
    {
        vLI_Stop();
    }
    vBULB_SetOnOff(bOn);
}

Regards,

Mario

0 Kudos

937 Views
minhtan_uet
Contributor III

Oh! I understand. :smileygrin: :smileygrin: :smileylaugh:
Thanks you so much!