Problem wiht arduino Uno Xbee configuration

Hello to everyone, I have seen that there are a lot of topics about the arduino xbee shield and the xbee communication but I cant find some question that maybe you can answer me faster.

My idea is build a xbee network with and arduino coordinator connect to a PC a some (more than 1) arduino end device nodes, so I need an API mode communication. Well first of all I have tried to connect only 2 Arduinos (master and slave) so with the digi X-CTU software I have tried to configure them. The model of all my arduinos is XB24 and the firmware is 10E6. When I try to configure them (mode configuration) I have only 4 function set (xbee 802.15.4, xbee 802.15.4 analog IO adapter, xbee 802.15.4 digital IO adapter and xbee 802.15.4 RS232 power harvester)

the first of my question: wich option is te best for the master and the slave of my network? If I try to read the modem parameters and firmware it fail (Failed to enter command mode, Unable to read version (ATVR) Read parameters failed). How with the X-CTU sw I cant do anything I configure myself the 2 Arduinos as next:

Coordinator

  • AP= 1 (or 2 with scape character)
  • CE=1
  • PAN ID= same as default 3332
  • CH= C
  • DH= 0
  • DL=0xFFFF (for broadcast)
    End device
  • AP= 1 (or 2 with scape character)
  • CE= 0
  • PAN ID= Same as coordinator (3332)
  • CH= same as coordinator (C)
  • DH= Coordinator's SH
  • DL= Coordinator's SL
  • MY= Same number as COM port assigned in PC (in example 4)

With this configuration I try the series1_tx and series1-rx examples (xbee library) and its seem that the message is sent from the end device (it contains as payload a simply "hello world", with a terminal I cant see the msg from the end device) but the coordinator dont receive any message (I work with the led 13, but it never blink)

It's possible that I dont have a good parameters configuration?

thanks for all your help

Bye

"If I try to read the modem parameters and firmware it fail (Failed to enter command mode, Unable to read version (ATVR) Read parameters failed)."
That's not good. How exactly are you connecting the XBee to the computer?
Have you set the baud rate correctly?

I am having trouble understanding some of your other comments, presumably english is not your first language.

Sorry for my english, I'm spanish and I don't write english from a long time. I have some Arduino Uno with a Xbee shield (more info: http://www.cooking-hacks.com/index.php/arduino-zigbee-pack-802-15-4-version-129.html) and I connect the arduino Uno+Xbee shield using the Arduino's usb. If I try the test button it detects the model (XB24) and the serial (10E6) but modem configuration ->read parameters firmware always fail.

I works with 9600bds all the time (communication between arduinos and communication between arduino and putty)

If I try communicate 2 arduinos in transparent mode there are no problem, donc I supose there are not any hardware problem

why it could be possible?

The arduino's parameters for a coordinator and a end device are ok?

thanks for your time and your help

I connect the arduino Uno+Xbee shield using the Arduino's usb. If I try the test button it detects the model (XB24) and the serial (10E6) but modem configuration ->read parameters firmware always fail.

I'm not sure you can configure them this way as the serial port that is being used for the XBee is also being used for the arduino so they interfere, that will probably be why it doesn't read correctly.

If you carefully remove your atmega chip from the uno, connect the XBee shield and then try configuring then it should work correctly.

Then, once configured, you can put the ATmega chip back in.

Ok, thanks you very much mowcius.

Your reponse answer another question that I have: It is possible remove the ATmega chip from the Uno board, but How you can do it? I have the impressión seen the board that the chip is weld (I dont know if the good verb is weld or solder, sorry :slight_smile: ) to the board. If remove the chip and some days later I need plug it to the board once again the are no problem, correct?

Once again thanks you very much for your patience with the questions and my english

Bye

If you have the uno that looks like this:

Then you can simply remove the DIP chip from the socket and then plug it back in again when you're done (make sure it's the right way round).

If you have an uno that has a surface mount chip (doesn't look like the first pic) then you cannot remove it yourself (well not easily anyway)

Well I have removed the Atmega chip and tried again with the X-CTU SW. With the test button X-CTU finds me the xbee's model and serial but if I try to read the modem parameters firmware a message window says "The modem configuration file was not found. Would you like to chech the web site for updates? (Recommended)" I click OK but X-CTU finds nothing ("modem configuration file not found after update" message).

I cant understand whats going on... If the transparent mode works fine I supose there are no HW problem, correct?.

As I am working with the xbee library GitHub - andrewrapp/xbee-arduino: Arduino library for communicating with XBee radios in API mode I use the Series2_Rx and Series2_Tx examples, but there is no communication. It looks like the transmitter send the message (the next image is a com terminal image capture) but nothing happens on the receiver.

I have change my xbee configuration parameters as next:

Coordinator:
ID: 2222 CH: C CE: 1 AP: 2 BD: 3 (9600bds)
MY: 6 SH:13a200 SL: 4068909c DH: 0 DL: 0
(Destination address, DH+DL, is 0 because coordinator transmits nothing, only read the messages from all the end devices)

End Device:
ID: 2222 CH: C CE: 0 AP: 2 BD: 3 (9600bds)
MY: 5 SH:13a200 SL: 40689099 DH: 0 DL: 6 D0: 2 D1: 2 D2: 2
(End device's Destination address is the coordinator address MY)

It is it a good configuration?

thanks you very mucho for all your help the patience with the spanish newbie

The modem configuration file was not found. Would you like to chech the web site for updates? (Recommended)" I click OK but X-CTU finds nothing ("modem configuration file not found after update" message).

Hmm, that is weird.
So, if you load up a config file (the correct one for your modules) and write it to a module then try and read it afterwards, does it the find the config file (does it write to it ok?)

mmm maybe that's the problem. The firmware is not the same that configuration parameters, correct?. I set the configurations by the putty terminal and the AT commands, I write them in the Arduino (ATWR command) but when I try to see this configuration with the X-CTU the "not found message" appears, so its possibly that the firmware is not correct?

By the way I have spent my time doing tests and at the end I can make a communication between 1 coordinator and 2 end devices, so I seems that there is no problem with HW and firmware.

Do you think I must be worried about the problem with the firmwares and the X-CTU?

so its possibly that the firmware is not correct?

I'd say that's a possibility.

I might actually recommend visiting the Digi support forum - they know a lot more than I do about XBees :smiley:

try reseting the XBEE if it has a reset switch click and hold till the ERROR window closes or click it and then wait for 10 seconds so as to let it vanish or if XBEE's not having the Reset switch then just take the XBEE out and insert it back in the ADAPTER.

Nishant:
try reseting the XBEE if it has a reset switch click and hold till the ERROR window closes or click it and then wait for 10 seconds so as to let it vanish or if XBEE's not having the Reset switch then just take the XBEE out and insert it back in the ADAPTER.

You either haven't read the thread or haven't taken it in...

mowcius:
"If I try to read the modem parameters and firmware it fail (Failed to enter command mode, Unable to read version (ATVR) Read parameters failed)."
That's not good. How exactly are you connecting the XBee to the computer?
Have you set the baud rate correctly?

i just had the fast glimpse of whole story had read this now this many happen commonly in case of XBEE connection and the remedy i suggested is fine, as in the starting the user's may fail to adapt to the fair timing of XBEE i.e. 10 seconds may time out.

Nishant:

mowcius:
"If I try to read the modem parameters and firmware it fail (Failed to enter command mode, Unable to read version (ATVR) Read parameters failed)."
That's not good. How exactly are you connecting the XBee to the computer?
Have you set the baud rate correctly?

i just had the fast glimpse of whole story had read this now this many happen commonly in case of XBEE connection and the remedy i suggested is fine, as in the starting the user's may fail to adapt to the fair timing of XBEE i.e. 10 seconds may time out.

Yes but if you had read the thread - you would have realised that was because he was connecting it with the arduino hardware serial port without removing the atmega chip.
Then another issue cropped up...

Well after spend some time trying differents options the xbee communication woks fine between 2 end devices and a coordinator connected to a PC, thanks you very much for the help. I think that the problem was in the program code, but even if it works fine I can't configure the xbee chips from the software X-CTU, it could be possible the is a problem between the Arduino xbee shield and the X-CTU for communicate the SW and the xbee chip?

well once more thanks u for the help!

As we say on Spain (there isn't 2 whitout 3) I have a new problem similiar to ask you:

One of my arduinos cant' comunicate whit the coordinator. his description is the same as the others (arduino uno board, arduino xbee shield and a xbee chip). When I bought it the arduino worked fine, but trying to update the firmware or the xbee options with the x-ctu something was wrong and I can't works with the xbee chip, even I cant' configure the chip using a putty serial connextion.

If I try the test/query button x-ctu shows me the next message:

  • Communication with modem OK
  • Modem type= Name unknown (ID=4294967248983840)
  • Modem firmware version =

I thinks I have configure the chip with the wrong configuration (and now it doesn't work) but if I try write new parameter's values for a correct configuration (Modem conguration --> write button) x-ctu shows me the next message:

  • Getting mode type OK
  • Programming modem... Lost communication with modem
  • Write parameters Failed

Any idea? maybe bauds rate configuration for the communication?