ZBPCID_AP specification

For those using the USB-CID as their ZigBee coordinator

Moderator: Justin

mahmutbeg
Posts: 3
Joined: Wed Jan 21, 2015 2:38 pm

ZBPCID_AP specification

Postby mahmutbeg » Wed Jan 21, 2015 5:41 pm

Hi,

I am trying to write simple application using ZBPCID serial API (http://smartenit.com/sandbox/downloads/ZBPCID_API.pdf)

I setup USB-CID using instructions from http://wiki.smartenit.com/index.php?tit ... _Docklight
- JEN_ClearNVM_and_Reset
- ZB_SysStartNwk
- JEN_OpenJoin

I am not using docklight scripting, I am using serial api in my node.js application.
- I have one ZBWDS sensor.
- After command open join, and pressing buttons on sensor in order to join it to network I receive following data:

Code: Select all

<Buffer 02 10 1b 0b 67 ad 00 13 7a 00 00 00 78 56 80 0d>

so, the command is 0x101B = DEVICE JOINED as from ZBPCID_AP specification.
- After this initial setup, when I activate sensor by distancing the magnet from the sensor I receive following data:

Code: Select all

<Buffer 02 10 30 0a 32 67 ad 02 05 00 00 64 31 04 84>

where I can recognize 0x67AD as 16 bit sensor address, and after putting the magnet back to the sensor following:

Code: Select all

<Buffer 02 10 30 0a 32 67 ad 02 05 00 00 64 30 04 85>

Byte on the position 14 is changing from 31 to 30 when opening/closing the magnet. The problem is I wasn't able to
find response in ZBPCID_AP specification which describes the data I am receiving. Actually, there are 16 commands
starting with 0x1030, but none of them seems to correspondent to the data I am receiving.

I am looking forward to any help on this matter.

Thanks

Dhawal
Posts: 259
Joined: Wed Nov 09, 2011 2:18 pm

Re: ZBPCID_AP specification

Postby Dhawal » Sun Jan 25, 2015 9:04 pm

Hi,

Code: Select all

02 10 30 0a 32 67 ad 02 05 00 00 64 31 04 84

02 10 30 0a 32 67 ad 02 05 00 00 64 30 04 85


The above two messages are Zone Status Change Notification commands from the IAS Zone Cluster. For more details please refer to the ZigBee Cluster Library and look up IAS Zone Cluster and the mentioned command.

Here's how I would parse the above command:
02 ==> Start of Packet
10 30 ==> Cluster Command
0a ==> lenght
32 ==> mode
67 ad ==> address
02 ==> endpoint
05 00 ==> Cluster id (IAS Zone)
00 ==> Commad ID
payload ==> 64 30 04
85 ==> crc
Regards,
Dhawal
dhawal.d@smartenit.com
(949) 429-3303

mahmutbeg
Posts: 3
Joined: Wed Jan 21, 2015 2:38 pm

Re: ZBPCID_AP specification

Postby mahmutbeg » Mon Jan 26, 2015 3:48 am

Hi,

By "For more details please refer to the ZigBee Cluster Library and look up IAS Zone Cluster and the mentioned command." you mean to look up ZigBee Alliance provided documentation available here http://www.zigbee.org/download/standard ... r-library/, or some documentation provided by smartenit, as I wasn't able to find any?
Also ZigBee cluster is something defined by standard and ZigBee Alliance, what I need in order to use it is serial API of "smartenit" device, as I wasn't able to demistify the message from the specs provided http://smartenit.com/sandbox/downloads/ZBPCID_API.pdf . Please point me if I am wrong.
How did you parse the command? I am still not able to find it in http://smartenit.com/sandbox/downloads/ZBPCID_API.pdf. Is there "updated version" of this spec?

Is there any more detailed documentation for serial API interface to USB-CID beside http://smartenit.com/sandbox/downloads/ZBPCID_API.pdf ?

Thanks

Dhawal
Posts: 259
Joined: Wed Nov 09, 2011 2:18 pm

Re: ZBPCID_AP specification

Postby Dhawal » Mon Jan 26, 2015 10:57 am

By "For more details please refer to the ZigBee Cluster Library and look up IAS Zone Cluster and the mentioned command." you mean to look up ZigBee Alliance provided documentation available here http://www.zigbee.org/download/standard ... r-library/, or some documentation provided by smartenit, as I wasn't able to find any?

Yes I meant to look up ZigBee Alliance provided documentation available here http://www.zigbee.org/download/standards-zigbee-cluster-library/

How did you parse the command? I am still not able to find it in http://smartenit.com/sandbox/downloads/ZBPCID_API.pdf. Is there "updated version" of this spec?

It looks like the documentation for a CLUSTER COMMANDS RESPONSE, General format for commands to a cluster response is MISSING. We will update the document very soon. In the meanwhile you can proceed with parsing I detailed before.

Is there any more detailed documentation for serial API interface to USB-CID beside http://smartenit.com/sandbox/downloads/ZBPCID_API.pdf ?

No, that is the only serial Api document. You will however need to use the appropriate Zigbee Alliance provided documentation when needed. For example to know that 0x00 is the Zone_Status_Change_Notification Command. And then understanding the payload values: 0x6430 0x04

Let me know if you have any other questions.
Regards,
Dhawal
dhawal.d@smartenit.com
(949) 429-3303

mahmutbeg
Posts: 3
Joined: Wed Jan 21, 2015 2:38 pm

Re: ZBPCID_AP specification

Postby mahmutbeg » Tue Jan 27, 2015 3:19 am

Hi Dhawal,

Thank You very much for provided help and please post when You update documentation for serial API.

Thanks!

thatgirl90
Posts: 1
Joined: Fri May 22, 2015 6:54 am

Re: ZBPCID_AP specification

Postby thatgirl90 » Wed May 27, 2015 2:21 pm

By "For more details please refer to the ZigBee Cluster Library and look up IAS Zone Cluster and the mentioned command." you mean to look up ZigBee Alliance provided documentation available here http://zigbee.org/non-menu-pages/zigbee ... -download/, or some documentation provided by smartenit, as I wasn't able to find any?

Yes I meant to look up ZigBee Alliance provided documentation available here http://zigbee.org/non-menu-pages/zigbee ... -download/


The link doesn't work. Could you please update this?
thanks

Dhawal
Posts: 259
Joined: Wed Nov 09, 2011 2:18 pm

Re: ZBPCID_AP specification

Postby Dhawal » Wed May 27, 2015 2:41 pm

You can just search in Google for "ZigBee Cluster Library"
Here's the updated link:
http://www.zigbee.org/download/standards-zigbee-cluster-library/
Regards,
Dhawal
dhawal.d@smartenit.com
(949) 429-3303


Return to “USB-CID”

Who is online

Users browsing this forum: No registered users and 1 guest