I want to know how can I read some attribute on local and remote zigbee device using TI zstack and how to put its value to uart. I'm zstack beginner. I managed to use uart with usb to uart converter and can send data to my pc. So I need to know how to get the attribute data. I've read api manual but didn't anderstand how to use zcl_SendRead function. Thanks.
1
There are 1 best solutions below
Related Questions in ATTRIBUTES
- Ajax-update only a component attribute, not the whole component nor its children
- How to move an attribute and its value from one element to another
- Rails WiceGrid with multiples attributes in the same column
- Java Running A Constructor from a Subclass
- Is it possible to implement a conditional attribute on a field in Odoo?
- Swapping attributes in AD
- Visual Studio: replace default doubleclick-event
- Accessing a custom attribute from within an instanced object
- How to mark function argument as output
- jQuery link elements by attribute
- Render outcome of "action" attribute?
- Entity Framework Code First from database not adding Key attribute
- Java Atribute In Class and Subclass
- Applying product attributes
- Leverage MultipleApiVersions in Swagger with attribute versioning
Related Questions in ZIGBEE
- zigbee module talks to humidity / temperature sensor
- Zstack read attribute
- zigbee module callback function incompatible to ZCL spec
- Zigbee kernel driver
- Sending data from coordinator XBee(API) to router XBee(AT)
- Two Xbee in API mode - Python
- Reading Mac data of Zigbee
- Python reads zeros from ZigBee frame
- Program to use for Zigbee in Iter vehicle communication?
- how to read 100 or more strings per second through py serial port
- Zigbee network sniffing and converting values
- How can i merge philips hue mesh with mqtt mesh in home assistant?
- XBee PRO S2B communicating with ZigBee HA profile sensors
- C program in Windows to access the contents on the bus
- Is it possible to call WCF 4.0 (SOAP or REST) from Unmanaged C (ZigBee device)?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Follow section "3.3 Send Read" of the "Z-Stack ZCL API.pdf" this should contain enough info for getting the read attr to the correct destination device. The contents of the readCmd is an array of attribute ID's, specific to the attribute(s) you want to read. You will need to consult the ZCL specification or device documentation to determine the correct Attr ID and Cluster ID.
An example for sending a read attr is shown below. It reads the ATTRID_MS_TEMPERATURE_MEASURED_VALUE attribute (from the ZCL_CLUSTER_ID_MS_TEMPERATURE_MEASUREMENT cluster) from device with short address 0x1234 and endpoint 0x1.
Once this command is sent you need to process the received the response, you will notice that the functions are contained in the ZStack Sample Applications but not populated, for instance the SampleSwitch application has zclSampleSw_ProcessInReadRspCmd() function, this will be called to process the read attr response and you will need to populate it to do what you want to do with the response.
Regards, TC.