X Bee PROBLEM

I have setup two xbes but they do not appear to be talking to each other.

I have two PCs in the same room with each xb connected via comports and maxs, no problem reading and writing to the configs using AT.

All the power and voltages are correct and all registers are still at factory defaults but no action.

I have three Leds to indicate status

Power: ON

Associate: Flashing

A led to pin 6: Off

Both configurations are the same:

CH=C

PAN=3332

DH=0

DL=0

MY=0

An Idea’s?

what kind if xbee’s??

series 1 , series 2 , or znet 2.5?

try issuing a node scan

ATND

it will show the other xbee if it is on the same pan and channel.

corvette123:
what kind if xbee’s??

series 1 , series 2 , or znet 2.5?

Hi Corvette123,

Not exactly sure, they are pro versions, is there some differences i can see.

corvette123:
try issuing a node scan

ATND

it will show the other xbee if it is on the same pan and channel.

Tried it, got a short pause then a blank line returned from the module.

andyf97:

corvette123:
what kind if xbee’s??

series 1 , series 2 , or znet 2.5?

Hi Corvette123,

Not exactly sure, they are pro versions, is there some differences i can see.

They have Rev11 on the PCB 2006, old ones I guess

andyf97:

andyf97:

corvette123:
what kind if xbee’s??

series 1 , series 2 , or znet 2.5?

Hi Corvette123,

Not exactly sure, they are pro versions, is there some differences i can see.

They have Rev11 on the PCB 2006, old ones I guess

XBP24-AUI-001

Just looked it up, it seams they are series 1

sounds like your using the series 1 ones and just trying to do point to point com. You need set the DL low of one Xbee to the MY of the other.

something like this…

Module A:

MY=1

DL=2

Module B:

My=2

DL=1

Chupa:
sounds like your using the series 1 ones and just trying to do point to point com. You need set the DL low of one Xbee to the MY of the other.

something like this…

Module A:

MY=1

DL=2

Module B:

My=2

DL=1

Hi Chupa,

Tried that and still no joy.

This LED on pin 6, should this be on usually to indicate an rf signal exists?

here is a simple static configuration as 2 end devices

Both nodes as end-devices with a static configuration.

Node1:

ATA100

ATA200

ATCH0C

ATNINODE1

ATID01

ATMY01

ATDH00

ATDL02

ATCE0

Node2:

ATA100

ATA200

ATCH0C

ATNINODE2

ATID01

ATMY02

ATDH00

ATDL01

ATCE0

here is a 2 node network if you wanna use one of those as a coordinator and the other as an end device (since its series 1 u dont ned a separate firmware)

1 coordinator with dynamic configuration hooked up to USB port.

1 end devices which get configuration from coordinator, end devices send data to coordinator

Coord:

ATA100

ATA206

ATCH0C

ATNICOORD

ATID01

ATMY01

ATDH00

ATDL02

ATCE1

Node2:

ATA10F

ATA200

ATCH0C

ATNINODE2

ATID01

ATMY02

ATDH00

ATDL01

ATCE0

…changed it for 2 nodes…

now if you were doing series 2 or Znet 2.5 then a coordinator would need a separate firmware.

and the router / end device of a series 2 / Znet 2.5 is one firmware…

but on series 1 its just 1 firmware for evertything.

cheers

:smiley: :smiley: :smiley:

you must also double check your sleep, rts and cts pins to make sure the module will send and aint in sleep mode.

look at the data sheet for a nice diagram.

and if you changed the sleep settings and wrote it to NVM then youll have to use a digi board or similiar to change it back to something else…

remember sleeping nodes wont response to ATND command.

normally an ATND will return all things on a channel such as this output (after the ATND)

http://www.thesiliconhorizon.com/terminal.jpg

Hi corvette123,

Thanks for your help and guidance but its still not working.

I followed the examples perfectly, double and triple check I was typing correctly.

One thing that i did notice late last night was if I hold down a key in terminal mode until about 300-400 keys have been sent to the module, I got one appear on the remotes terminal. so 300-400 keypresses to get a single character to the remote. This suggests some RF managed to make the connection. Also sometimes the Led I have on the remotes PIN 6 did switch on briefly. I did this test a few times and managed to get 7 characters to the remote PC after sending over a thousand…

One thing I didnt add yesteray is about the Antenas, they are connected.

What I am going to do is look closer at the max232 part as I am wondering maybe the level shifting is not so perfect, it looks like characters are being dropped. Saying that, this does not make much sence as the AT commands seam to arrive ok. They are confirmed with “OK” each time. I can also read all the modem Configuration each time without problems. Its seams more connected to the RF than the rs232 side but I could also have more than one problem here.

Another thing that may be connected, I was trying some other examples for setting up a remote to send analog and IO pin data and during sending the ATs to configuring a pin I get an error. So I made this small test example to show you.

+++OK

ATD0 // A deliberate error test

ERROR

ATD01

ERROR

ATD05

ERROR

I am using X-CTU for this

corvette123:
you must also double check your sleep, rts and cts pins to make sure the module will send and aint in sleep mode.

look at the data sheet for a nice diagram.

Howdy, I’m having a similar problem as the OP. I have 2 XBee Pros, one with a part number XBP24-AUI-001 (i have another one of these as well), and another XBP24-AWI-001. I’m using the most current firmware from Digi on all.

I have the eval/test kit, and when I hook both radios up, things flow fine. But I’m then attaching one of the radios to my project, which is a PIC18F8723 using the USART to connect to it. I have a 232 tap coming off the in/out pins, so I can see information coming from the PIC, but I can’t send any command mode stuff (+++, etc) through that serial connection. It’s almost as if the device is asleep, but sleep mode is disabled for all radios (SM = 0), and the “on” pin is asserted to voltage. And yes, the radio is getting power, I checked Pin 1 with a multimeter.

The one thing that is different from when it’s attach to the PIC versus the eval board, is that the RTS pin is high on the eval board, and low when attached to the PIC. The baud rates are correct, as it works fine in the eval section, and I can see data coming from the PIC.

I tried putting both radios in Broadcast mode, and that didn’t do anything.

ATND works when they’re on the eval board, but not when one is eval board, and other is on the PIC

Any thoughts would be appreciated

(sorry if this is ‘inappropriate posting behavior’, coming in on another person’s issue… not trying to take away from the OP’s issue…)

-sho

andy,

sounds like u have it in some kinda sleep mode…

id check the sleep settings…

what interface board are you using? Digi’s? (maxstreams?)

if the module is asleep then it wont receive anything and data is only stored for soo long before it is discarded especially when you are overflowing the buffer like you are doing.

you can disable rts, cts pins if you want in module setup.

RTS and CTS are detailed in the digi manual with diagrams!!

i would suggest using these in your pic designs!!!

becuase lets say in a low power situation that is MCU master controlled (pin sleep sm=2)

1.MCU puts xbee to sleep by toggling sleep line

  1. MCU goes into idle or sleep mode

  2. MCU wakes by timer event

  3. MCU wakes up Xbee module by toggling sleep line

  4. MCU waits for CTS to change to signal Xbee is ready

thats why you need the cts, rts lines.

if you have the cts, rts pins enabled and the lines are not asserted than the module wont send or receive.

After a long day of banging the head at the wall i found the problems, or at least enough to move forward.

corvette123: What Interface, well I am using solderless breadboards.

It was as I thought a combination of several factors.

I was using a MAX232n, changed this to a Maxim Max232CPE

which solved the inicial RS232 communication problems.

Updated the firmware, this was tricky at first when needing the DTR RTS, I did try a 7404 as some people suggest but that didnt work so I just used another Max232 and WALA, updated ( I could not do this before when having RS232 problems ). Why this didnt work witha 7407 I do not know, maybe my circuit is not perfect but I will have another bash at that later to see what cases the problem.

Enabled API, this allowed port functions to be used, did not see that surprize in the manual.

Added some extra capacitors to clean up the voltage levels, didnt realise how bad they were until I probed them with a scope.

One hour ago, went over the steps corvette123 suggested and each worked perfectly.

Just running the AD sample test that is listed in the manual, its now running like an angel with 758,982 bytes of test data sent since i started to type this.

I hope you do not mind i may have some additional questions later regarding polling remotes for data and setting remote features etc…

I guess after this last 5 days of trying many things, I got to learn how to solve a lot of problems.

So, a great big thanks to you guys especially corvette123 for your help and thanks to Sparkfun for this forum.

hmmm glad u found the problem!!

u should use our xbee controllers they are cheap and it works!!

no head banging hahahaha

:smiley: :smiley: :smiley: :smiley:

good luck with your project!!

yes sparkfun rocks!!

:smiley: :smiley: :smiley:

corvette123,

This works fine but I have a small problem,

when i send a single keypress from one pc to a remote pc, I get 9 extra bytes.

i press

a

on the remote i get:

~…*.a.

if I press many times that star changes to other characters.

~…*.a.

~…$.a.

~…).a.

~…).a.

~…*.a.

is this basically a packet of info and if so, can you expalin what each byte represents.

corvette123:
here is a simple static configuration as 2 end devices

Both nodes as end-devices with a static configuration.

Node1:

ATA100

ATA200

ATCH0C

ATNINODE1

ATID01

ATMY01

ATDH00

ATDL02

ATCE0

Node2:

ATA100

ATA200

ATCH0C

ATNINODE2

ATID01

ATMY02

ATDH00

ATDL01

ATCE0