reading from Serial, XBee-XBee communication

Hi,
I have got an XBee which sends sensor data endlessly to another XBee. It is the following two lines which are updated and send every 1000 msec:

97991
1070
...

Using an XBee mounted on an XBee Shield (Sparkfun WRL-09976) together with PuTTY to display the data works fine. The sensor data run endlessly over the screen.

However, I see the data only once when I use the Arduino Uno to display the data coming in over an XBee mounted on a XBee shield (DFRobot DFR0015):

97991
1070
setup




So it seems that the data from mySerial are only read once.

I got the follwoing coding:

#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3); // RX, TX

void setup()  
{
  Serial.begin(9600);
  Serial.println("setup");
  mySerial.begin(9600);
}
void loop()
{
  if (mySerial.available())
  {
      Serial.print((char)mySerial.read());  
  }
  if (Serial.available()) 
  {
      mySerial.print((char)Serial.read());
  }
  
  delay(4100);
  Serial.println("----");
}

Any ideas what my error is ?

Thanks
AgeBee

I have got an XBee which sends sensor data endlessly to another XBee.

Where does this XBee get the sensor data? Are the sensors directly connected to the XBee, or is there an Arduino involved?

97991
1070
...

What kind of sensors are returning values like this?

PaulS:

I have got an XBee which sends sensor data endlessly to another XBee.

Where does this XBee get the sensor data? Are the sensors directly connected to the XBee, or is there an Arduino involved?
The XBee and the sensor (BMP085 Bosch, pressure sensor) are connected to an standalone ATMega328P.

97991
1070
...

What kind of sensors are returning values like this?
BMP085 (Bosch, pressure sensor) delivers pressure and the Arduino calculates a second kind of data (mapped)

I found the solution myself after countless hardware inspections (changed nearly everything). It was not the hardware, it was the software.

Just to make sure that we are talking about the same things:
I posted that I was sure the sending XBee works. It was just that I could not get it on the serial monitor with the help of a receiving XBee mounted on a shield on the and Arduino.

The solution was not to use the two serial statements together, i.e. Serial and SoftwareSerial.
As I removed all the Serial.xxx commands I got my signals from the sending XBee on the monitor.

Serial.begin(9600);
Serial.println("setup");
mySerial.begin(9600);