reading return value for XBee module (AT command)

Hi there,

I am new to this forum and also new to XBee module, please provide me some assistance here.

with X-CTU Terminal,

i can basically read/write the information from the XBee module (while it’s connect to COM 1, 3 or 4 on my machine) as a coordinator

I also have a End point as well, and i am trying to communicate/read/write to that end point via my coodinator.

so far, in Terminal for my coordinator,

i entered

+++ OK(return message)

ATND (node discovery)

ane then i received the following:

8E5E

0013A200

400A0FBF

0000

02

00

C105

101E

can someone please explain how to read the value, as far as i know,

0013A200 is the 64 bit address (quick start guide from digi)

and i hoping to read/write to that end point, also understand the return value,

please assist,

thanks,

Keppler

start with the transparent serial port firmware. A and B exchange whatever data is on the serial port.

Next, you can config the remote XBee to sample A/D or digital pins and send data every x amount of time.

In operation, these don’t use AT commands after config.

Then if you need to, move to the Digi Binary API

stevech:
start with the transparent serial port firmware. A and B exchange whatever data is on the serial port.

Next, you can config the remote XBee to sample A/D or digital pins and send data every x amount of time.

In operation, these don’t use AT commands after config.

Then if you need to, move to the Digi Binary API

Hi Stevech,

thanks so much for explaination,

is it possible that you can provide me a sample code in C# of how Binary API works?

My boss is asking me to use API to send a series of ASCII code to the coodinator to read/write the end point device etc,

but he would like to read the return message that i have post above,

and i am struggling to understand it :frowning:

thanks,

Keppler

Hi Stevech,

i saw this in the Digi document:

Use the transmit request, or explicit transmit request frame (0x10 and 0x11 respectively) to send

data to the coordinator. The 64-bit address can either be set to 0x0000000000000000, or to the

64-bit address of the coordinator. The 16-bit address should be set to 0xFFFE when using the 64-

bit address of all 0x00s.

To send an ascii “1” to the coordinator’s 0x00 address, the following API frame can be used:

7E 00 0F 10 01 0000 0000 0000 0000 FFFE 00 00 31 C0

If the explicit transmit frame is used, the cluster ID should be set to 0x0011, the profile ID to

0xC105, and the source and destination endpoints to 0xE8 (recommended defaults for data

transmissions in the Digi profile.) The same transmission could be sent using the following explicit

transmit frame:

7E 00 15 11 01 0000 0000 0000 0000 FFFE E8 E8 0011 C105 00 00 31 18

Notice the 16-bit address is set to 0xFFFE. This is required when sending to a 64-bit address of

0x00s.

Now suppose the coordinator’s 64-bit address is 0x0013A200404A2244. The following transmit

request API frame (0x10) will send an ASCII “1” to the coordinator:

7E 00 0F 10 01 0013 A200 404A 2244 0000 0000 31 18

the example from the above, how do i test it in X-CTU?

what return value shall i expect?

if i can figure this out, writing it in C# shouldn’t be an issue,

thanks.

Keppler

keppler:

stevech:
start with the transparent serial port firmware. A and B exchange whatever data is on the serial port.

Next, you can config the remote XBee to sample A/D or digital pins and send data every x amount of time.

In operation, these don’t use AT commands after config.

Then if you need to, move to the Digi Binary API

Hi Stevech,

thanks so much for explaination,

is it possible that you can provide me a sample code in C# of how Binary API works?

My boss is asking me to use API to send a series of ASCII code to the coodinator to read/write the end point device etc,

thanks,

Keppler

Do you think it’s right and fair that we out here would do your work and you get paid?

This seems like a bit of a slippery slope (if I ask a question I could have figured out after hours of research, and I get an answer, is that not someone doing the work for me?). But I do agree that it’s poor form to request sample code for work, although if it was a hobby I would think more people would be inclined to help. rant

cesarsalad:
This seems like a bit of a slippery slope (if I ask a question I could have figured out after hours of research, and I get an answer, is that not someone doing the work for me?). But I do agree that it’s poor form to request sample code for work, although if it was a hobby I would think more people would be inclined to help. rant

I agree. If this is for hobby purposes, no problem.

If professional or student assignment - don’t expect more than top level general guidance.

Hi guys,

I am sorry if I made you guys felt that way,

I am new to this xbee product, never understood how to get anything to work under C#, that is why i am seeking for help,

what i am looking for is like, a very “general” starting of read/write under AT command and APIs, I did not mean to ask you guys to help me out with the job that I am doing,

sorry.

Kep

keppler:
Hi guys,

I am sorry if I made you guys felt that way,

I am new to this xbee product, never understood how to get anything to work under C#, that is why i am seeking for help,

what i am looking for is like, a very “general” starting of read/write under AT command and APIs, I did not mean to ask you guys to help me out with the job that I am doing,

sorry.

Kep

Do you have and have you read the OEM manual from Digi?

Hi Steven,

sorry for the late reply,

i am currently reading the user manual - ZB_PRO Features User manual_3-3-2009.pdf

but it doesnt really tell me much, any suggestion on which manual i should read?

thanks,

Keppler

keppler:
Hi Steven,

sorry for the late reply,

i am currently reading the user manual - ZB_PRO Features User manual_3-3-2009.pdf

but it doesnt really tell me much, any suggestion on which manual i should read?

thanks,

Keppler

If you have series 1 modules

http://www.digi.com/support/productdetl … s=270&tp=3

and

http://ftp1.digi.com/support/documentat … 0982_A.pdf

Digi’s website, like others, takes a few minutes of your time to find the comprehensive documentation you should expect to find. This is for your employer, correct?

Hi Steven,

thank you for the quick reply,

i am no longer working for my ex- employeer anymore,

i left the company about 2 weeks ago and now i am just using my spare time to work on this ZBee module,

what i am doing now all become private use and hobby only :frowning:

kep