read AD endpoint with coordinator

How can I read the AD data on my Endpoint XBee with my coordinator XBee?

To setup the XBee modulesI used :
http://www.humboldt.edu/~cm19/XBee%20setup.pdf

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.

thx, It worked with api.

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?

Endpoint:
SM: 0-No sleep
SP: 20
SN: 5
IR: 0
DH: 0000
DL: 0000

Coordinator:
IR: 0
DH: 0000
DL: FFFF
SP: 20

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?

The files:

COORDINATOR:
XBP24-B_ZigBee_1147.mxi
80
0
261
1147
0
[A]ID=768
[A]SC=1FFE
[A]SD=3
[A]NJ=FF
[A]DH=0
[A]DL=FFFF
[A]NI= COORDINATOR
[A]BH=0
[A]AR=FF
[A]DD=20000
[A]NT=3C
[A]NO=0
[A]PM=1
[A]EE=0
[A]EO=0
[A]BD=3
[A]NB=0
[A]D7=1
[A]D6=0
[A]AP=1
[A]AO=0
[A]SP=20
[A]D0=1
[A]D1=0
[A]D2=0
[A]D3=0
[A]D4=0
[A]D5=1
[A]P0=1
[A]P1=0
[A]P2=0
[A]LT=0
[A]RP=28
[A]PR=1FFF
[A]IR=0
[A]IC=0
[A]V+=0

ENDPOINT:
XBP24-B_ZigBee_1347.mxi
80
0
261
1347
0
[A]ID=768
[A]SC=1FFE
[A]SD=3
[A]NJ=FF
[A]JV=0
[A]DH=0
[A]DL=0
[A]NI= ENDPOINT
[A]BH=0
[A]AR=FF
[A]DD=20000
[A]NT=3C
[A]NO=0
[A]PM=1
[A]EE=0
[A]EO=0
[A]BD=3
[A]NB=0
[A]D7=1
[A]D6=0
[A]AP=1
[A]AO=0
[A]SM=0
[A]ST=1388
[A]SP=20
[A]SN=5
[A]SO=0
[A]D0=2
[A]D1=2
[A]D2=2
[A]D3=0
[A]D4=0
[A]D5=1
[A]P0=1
[A]P1=0
[A]P2=0
[A]LT=0
[A]RP=28
[A]PR=1FFF
[A]IR=0
[A]IC=0
[A]V+=0

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.

Thank you!

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?