How can I read the AD data on my Endpoint XBee with my coordinator XBee?
To setup the XBee modulesI used :
I’ve the Drop-In Networking kit.
ATND on the coordinator shows me the endpoint.
But how can I get the AD0 and AD1 data from the Endpoint with the coordinator?
Everything works, but it’s kind of slow.
I can send an IS command every 2 seconds. Is there a way to increase the speed to every 0,5 seconds?
When I increase the number of IS commands to send the End node isn’t responding in time, or it sends more answers at once.
I can send data (text) to my endpoint, but the endpoint doesn’t respond on any ATcommands when I try to send these with my coordinator.
To get IO samples from a remote device, you must run API firmware on the coordinator.
If you have API firmware loaded, you can do either of the following to get IO samples:
Set IR > 0 on the router or end device to enable periodic IO sampling (1 IO sample transmission every IR milliseconds)
Send a remote IS command to the router or end device using the Remote API command frame (API ID 0x17) to query the A/D information on the remote.
If an end device is sending the IO sample, what are its SP and SM command values set to?
Also, what are the IR, DH, and DL values set to?
SM: 0-No sleep
The coordinator is connected to a computer, who send the IS command every 0,5 seconds. The first 6 IS commands get a response, after these 6 response the endpoint doesn’t send any IO data. Sometimes it sends 3 IO data response at once.
It seems for me that there is a buffer overflow of some kind.
I want to send the IS command, I don’t want the enddevice or coordinator acting on their own.
So IR seems for me out of the picture.
What are the SH, SL, and MY values of the endpoint (router)? Can you post the API remote command frame you are sending to the coordinator to query the IS value on the endpoint?
I send the following IS command with the coordinator:
7E 00 0F 17 52 00 00 00 00 00 00 FF FF FF FE 02 49 53 FD
The endpoint replies with the AD data.
The API frame you are issuing is sending a broadcast IS command. In ZigBee, broadcasting should be limited to a maximum of 1 transmission per second, and even at that rate, it is not reliable.
You will see much better results if you change the API frame to send a unicast (directed) transmission to the router. To do this, change the following bytes:
00 00 00 00 00 00 FF FF
to match the 64-bit address of the router (SH and SL values on the router) and update the checksum. You can then send IS at a much faster rate.
Thx, that is working perfect.
Help please, I couldn’t get RF response when issuing IS command remotely, on the event of the IS only the serial recieve packet data.
Y is it?