device discovery 2013-12-22T14:36:32+00:00

HOME Forums Gateways Raspberry Pi device discovery

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Anonymous
    Post count: 19
    #40401 |

    Hi,
    I was wondering, does the api support device discovery features such as reporting of frequency band, manufacturer ID, power source, current level,…?
    And if so, how can I query for this information?
    Thanks.

    Anonymous
    Post count: 259

    Hi,
    The answer is yes!

    You will want to send Read Attributes for the Basic Cluster. Try the following:

    1. Send Node_GetEndPointDescriptors. The ZBPServer will poll the device for all EndPoints, Clusters and the Attributes.
    2. Then you can check which Attributes exist in the Basic Cluster and read them with the Node_ClusterCommand. Here’s an example of reading the Model ID of the device:

    ZBP_Node
    Node_ClusterCommand

    146 //u8Mode
    f81f //device address
    1 //endpoint
    0 //cluster id (Basic = 0x0000)
    0 //Command Id (Read Attributes = 0x00)
    [1,0,5] //Payload. [Number of Attributes, AttributeID1 higher byte, AttributeID1 lower byte, …..]

    10903

    Let me know how it goes.

    Anonymous
    Post count: 19

    cool. Thanks. I’ll give that I try.

    Anonymous
    Post count: 19

    yep, that worked ok. It took me a little longer cause I had included my device incorrectly.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.