XBee can't communicate with X-CTU but transmits data

Hi everyone,

I have a remote Xbee that is used to transmit analog signals from a gyro. The 2 gyro signals are connected to ADC/DIO1 and ADC/DIO2.

Before the Xbee is connected to the gyro, i changed the settings using X-CTU. Then I set it on the gyro board and transmit whatever analog signals to my pc via another xbee connected to a usb explorer.

The transmission seems to be fine. I wrote a vb program to capture the data from the serial port.

The problem is when i want to adjust the settings of the remote xbee, it doesn’t communicate with X-CTU anymore.

It has this message when I do a Test / Query:

Communication with modem OK

Modem type = Name unknown (ID = 4294967248525524)

Modem firmware version =

However I could still transmit signal when i put it back to the gyro board.

Any help would be much appreciated!

A little more info is helpful:

What is the exact Firmware version in the XBees? This will ensure we are looking at the correct document and know what feature are available.

What XBee parameters do you change to set up for reading the gyro?

Was Sleep enabled? If so then the XBee is probably sleeping when you try to read it with X-CTU.

Did you change the Baud rate? Did you try other Baud rates in X-CTU? (I did this once and took a while to realize the Baud rate was not the default).

Is the XBee set for API or AT commands? Did you try the API check box in X-CTU?

Hi waltr,

Thanks for replying!

Exact firmware:

Remote or End device XBee - 1347

Coordinator XBee - 1147

Settings I change: sampling rate (set to 50ms), D0 & D1 (set to 2 for ADC), Destination addresses to the Coordinator XBee.

Sleep is set at 0 - No sleep.

Baud rate was set at 9600, no change. I tried a few other baud rates (not all), didn’t work.

Yes it’s set for API and the Enable API box was checked.

I also found a post in DIY drones about ‘bricking’ XBees; the poster said powering up the XBee with power, ground and signal lines connected to the XBee could ‘brick’ the XBee. could that be possible? here’s the link: http://diydrones.com/profiles/blogs/one … -a-bricked

julrx:
It has this message when I do a Test / Query:

Communication with modem OK

Modem type = Name unknown (ID = 4294967248525524)

Modem firmware version =

However I could still transmit signal when i put it back to the gyro board.

Any help would be much appreciated!

I’ve seen such garbled ID when the baud rate is wrong, the baud rate error is more than about 5%, or the serial data electrical signal levels are marginal.

Ok, you have series 2 module running ZNET 2.5.

Which adapter board are you using between the XBee and the PC?

I assume that this worked originally. Re-check that it is connected the same as before.

Does the coordinator XBee talk to X-CTU?

Search through the treads here and there is info on ‘de-bricking’ XBees. If nothing is wrong with the hardware this might get the module talking with X-CTU.

Hi waltr,

Yes my coordinator xbee talks with X-CTU.

I use the xbee explorer usb: http://www.sparkfun.com/commerce/produc … ts_id=8687

My end device xbee could talk with X-CTU (using the usb explorer) while I am configuring it. Then i unplug it from the usb explorer and plug it to my pcb board with this gyro breakout board:

http://www.sparkfun.com/commerce/produc … ts_id=9425

power it up, it transmits data to the coordinator xbee. But when I wanted to change the sampling rate of the end device xbee (using the usb explorer again) it doesn’t talk to X-CTU anymore.

So although i can ‘de-brick’ the xbee, how do i prevent it from becoming ‘bricked’? am i doing something wrong?

the thing is, although it doesn’t talk to X-CTU, it transmits data when plugged to the gyro board.

I have stuck to the same baud rate (9600) all the time.

would it help if i post a photo of my setup?

thanks for taking the time to read this.

Another option:

You could send ‘remote commands’ to the end device through the coordinator in API mode. Study the API AT & Remote AT commands in section 6.0.4 of the data sheet.

I have another question, this time about the XBee USB explorer:

There are 2 ground pins on the USB explorer; if I power up an XBee on a USB explorer with a 3V battery, what is the difference between connecting the 3V battery to the 3.3V pin and to either GND pins?

Look at the schematic. These both are net name ‘GND’ which means they are connected to the board. The negative power can be connected to either.

Hi steve, I’m not quite sure what you mean. could you explain further?

Hi waltr, I don’t quite understand some of the things written in the manual but I will try to work it out.

Meanwhile, could you guys give me some feedback on my circuit:

http://i51.photobucket.com/albums/f369/ … G_1150.jpg

Also, I can’t seem to increase the sampling rate to 10ms (100Hz), it varies between around 16ms to 70ms but never at a steady value.

any advise?

I can’t really tell anything about your circuit. Could you sketch a schematic of the connections?

Which gyro is that (link please).

Also, I can’t seem to increase the sampling rate to 10ms (100Hz), it varies between around 16ms to 70ms but never at a steady value.

Is this sampling rate done by the XBee? If so I don't believe that XBees a meant to read and send analog data that fast, typical applications would be to sample every several seconds to many hours even though the sampling period can be set to 1ms. Trying to sample at too high a rate would get restricted by the ADC, packetizing, transmission and Acknowledge. Try increasing the sampling period until the received data matches the set sampling rate.

THis is the circuit:

http://i51.photobucket.com/albums/f369/julrx/pcb.jpg

The gyro breakout is the LPY5150:

http://www.sparkfun.com/commerce/produc … ts_id=9425

Yes the sampling rate is done by the XBee.

I can’t recall if the XBee firmware batches several samples in one transmission.

But a packet from an XBee 2.4GHz device will have many mSec of delay jitter. Some of the delay causes are:

  1. Clear Channel Assessment (CCA), where a transmission is delayed due to other signals present, such as some WiFi packets. Hopefully not from analog signals like an analog wireless camera using the same spectrum (they’re about 6MHz wide; 802.15.4 is 2MHz)

  2. Retransmissions by the MAC layer due to bit errors

  3. Your application and/or XBee firmware delays.

(assuming no mesh network layer)

Trying to get a reliable datagram packet (w/MAC layer ACK) more often than about 20mSec, absent all CCA delays, is too idealistic.

So this depends on how many samples are packed into one data frame transmission. If you don’t like how the XBee default firmware packs samples, you can connect the XBee to a micro via a serial port (3.3V levels) and do your own packing and decision on when to try to sent. You’d code the samples with delta-time + sample datum in a batch. I’ve run the XBees at 115Kbps serial with a transmission every 20 mSec. You can also turn off MAC ACKs for these kind of transmissions, or transmit to the broadcast address which has no ACK, but this isn’t a good idea in general. The ACK time is about 0.2 mSec in 2.4GHz, for '15.4.

Yep, what Steve said.

I know this is dumb, but i just realised that if I used the Series 1 XBees, it would be so much easier - the Series 1 can do ADC at 3.3V.

Also for some reason, I had the impression I had to use API for ADC.

Anyway I found another good link on XBee and accelerometer setup to share:

http://phys.csuchico.edu/ayars/XBee/welcome.html

I very much wish that SparkFun would put a couple of sentences in the XBee product listings to tell people the differences between Series 1 and Series 2.

How can we petition them to do so?

maybe they think that putting EVERYTHING in perspective will take out the ‘fun’ for people (like me) who make tonnes of mistakes in their projects…

By the way, I could not find any information on the Series 2 manual about Pin 14. Whereas the XBee breakout board refers to that as VREF. Any idea?

julrx:
maybe they think that putting EVERYTHING in perspective will take out the ‘fun’ for people (like me) who make tonnes of mistakes in their projects…

I started a thread here titled “Better XBee Documents”. Within are many links to documents and other info on the different XBees modules and protocols. Also, Digi International has much info on their web site about the different XBee modules and protocols. A quick search of the RF/wireles forum for “XBee” would find this thread!

By the way, I could not find any information on the Series 2 manual about Pin 14. Whereas the XBee breakout board refers to that as VREF. Any idea?

Since you are talking about a series 2 you bought from SparkFun I will Assume it is running the ZNET2.5 protocol (Series 2 can also run the ZigBee protocol and there is a different Digi Int document for each).

Pin 14 is listed in Table 1-02 as “Do not connect” in the Document “XBee™ ZNet 2.5/XBee-PRO™ ZNet 2.5 OEM RF Modules”, #90000866_C. This is different than on a series 1 module where this pin is the Vref input for the ADC on which the breakout board was based.

stevech:
I very much wish that SparkFun would put a couple of sentences in the XBee product listings to tell people the differences between Series 1 and Series 2.

There’s one sentence summaries on http://www.sparkfun.com/products/8687 and http://www.sparkfun.com/products/9132 but do you mean a better description than that? And do you think it should be on all XBee-related listings? If you would use different wording would you mind providing a suggested wording?

How can we petition them to do so?

If you provide some wording, I can I mention it to the guy in charge of product catalog.

–Philip;