Zigbee Control Bridge Issue with Scene Recall

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

Zigbee Control Bridge Issue with Scene Recall

Jump to solution
1,327 Views
dmsherazi
Contributor IV

I am working on Zigbee Control Bridge Application note JN-AN-1223, I am trying to set a scene and then recall it. I can add and store a scene using ZGUI (Zigbee Gateway User Interface) app from my PC and then later view it as well.

When I recall a scene the devices that are following the scene do not restore their state.

Here is what I am doing. 

I am sending store scene command to device with short address 0x139E, I am not using a  group here so 0x0000 as group id

pastedImage_1.png

result:

pastedImage_2.png

When I send view group command 

pastedImage_4.png

this is what I get:

Type: 0x8000
 (Status)
  Length: 4
  Status: 0x00 (Success)
  SQN: 0xC5
  Message: 
Type: 0x8011
 (APS Data ACK)
   Status: 0x00
   SQN: 0xC5
   Source EndPoint: 0x01
   Destination EndPoint: 0x01
     Profile ID: 0x0104 (ZigBee HA)
     Cluster ID: 0x0005 (General: Scenes)
Type: 0x80A0
 (View Scene)
  SQN: 0x38
  EndPoint: 0x01
  Cluster ID: 0x0005
  Status: 0x00
  Group ID: 0x0000
  Scene Id: 0x02
  Transition Time: 0x0000
  Scene Name Length: 0x00
  Scene Name Max Length: 0x10
  Scene Name: 
  Ext Scene Length: 0x0000
  Ext Max Length: 0x00
  Scene Data: 
      Type: 0x8101
 (Default Response)
  SQN: 0x38
  Short Address: 0x139E
  Source EndPoint: 0x10
  Destination EndPoint: 0x00
  Cluster ID: 0x0000 (General: Basic)
  Command: 0x53
  Status: 0x57

Recall command 

pastedImage_5.png

I get :

  Message: 
Type: 0x8011
 (APS Data ACK)
   Status: 0x00
   SQN: 0xC6
   Source EndPoint: 0x01
   Destination EndPoint: 0x01
     Profile ID: 0x0104 (ZigBee HA)
     Cluster ID: 0x0005 (General: Scenes)
Type: 0x8101
 (Default Response)
  SQN: 0x39
  Short Address: 0x139E
  Source EndPoint: 0x10
  Destination EndPoint: 0x00
  Cluster ID: 0x0000 (General: Basic)
  Command: 0x53
  Status: 0x57

but the device does not recall its stored state!

Am I missing something? Please guide me !

0 Kudos
1 Solution
872 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Dost,

A scene is often associated with a group (which collects together a set of endpoints over one or more devices)

Note: When the Scenes cluster is used on an endpoint, a Groups cluster instance must always be created on the same endpoint, even if a group is not used for the scene

To be able to use a scene command, the target device must be a member of a group with an associated scene.

Best Regards,

Mario

View solution in original post

0 Kudos
3 Replies
873 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Dost,

A scene is often associated with a group (which collects together a set of endpoints over one or more devices)

Note: When the Scenes cluster is used on an endpoint, a Groups cluster instance must always be created on the same endpoint, even if a group is not used for the scene

To be able to use a scene command, the target device must be a member of a group with an associated scene.

Best Regards,

Mario

0 Kudos
872 Views
dmsherazi
Contributor IV

Hi , I have done that as well.

Here are the steps.

  • Add a group with id 0x0022 to endpoint 1,2,3 on a device with short id 0x00C9 -- result success
  • store a scene with group id 0x0022 and scene id 1 on endpoint 1,2and 3 on the device with short id 0x00C9 -- success
  • View scene  with group id 0x0022 and scene id 1 on endpoint 1,2and 3 on the device with short id 0x00C9 -- result shows that the scene exists and shows scene data as well of this type: 0x06 0x00 0x01 0x01
  • Change the state of lights on device
  • Send Scene Recall command with group id 0x0022 and scene id 1 on endpoint 1,2and 3 on the device with short id 0x00C9 -- result status of switches doesn't restore
0 Kudos
872 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Dost,

What are you seeing in the received message view?

I followed your steps with one endpoint.

I change the state of lights on the device using the short and group address.When I send a recall command the status restored successfully.

pastedImage_1.png

But, How do you add more endpoints? 

Did you have the sniffer log of this?

Regards,

Mario

0 Kudos