xbee with softwareSerial problem.

Using the Physical Pixel example to debug hardware/software setup.

Arduino Nano. XBee Series 1, newest firmware update. Pin Hibernate enabled and working.
These sketches work when implemented for hardware serial to/from xbee.

Sending unit:
#include <SoftwareSerial.h>
SoftwareSerial softSerial0(7,6);///RX/TX

void setup()
{
softSerial0.begin(2400);
pinMode(7,INPUT);
pinMode(6,OUTPUT);
pinMode(5,OUTPUT);//through level shifter to xbee sleep pin
digitalWrite(5,LOW);//disable pin hibernate
}

void loop()
{
softSerial0.print(‘H’);
delay(1000);
softSerial0.print(‘L’);
delay(1000);
}

Receiving unit:
#include <SoftwareSerial.h>
SoftwareSerial softSerial0(7,6);///RX/TX

const int ledPin = 13; // the pin that the LED is attached to
int incomingByte; // a variable to read incoming serial data into

void setup() {
Serial.begin(9600);
softSerial0.begin(2400);
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
pinMode(7,INPUT);
pinMode(6,OUTPUT);
pinMode(5,OUTPUT);//through level shifter to xbee sleep pin
digitalWrite(5,LOW);//disable pin hibernate
}

void loop() {
if (softSerial0.available() > 0) {
incomingByte = softSerial0.read();
Serial.println(incomingByte);
// if it’s a capital H (ASCII 72), turn on the LED:
if (incomingByte == ‘H’) {
digitalWrite(ledPin, HIGH);
}
// if it’s an L (ASCII 76) turn off the LED:
if (incomingByte == ‘L’) {
digitalWrite(ledPin, LOW);
}
}
Serial.println(incomingByte);
delay(250);
}

Serial monitor output:
"
252
252
252
252
252
252
252
252
252
252
252
"
ad infinitum.

Implemented with hardware serial, printing to serial monitor yields
"72
72
72
72
76
76
76
76
72
72
72
72
76
76
76
76
" And the LED flashes properly.

SoftwareSerial on the sending unit and hardware serial on the receiving unit yields:
"

248
248
248
248
248
128
248
248
248
248
248
"
for some reason.

Hardware on send and software serial on receive yields:

Help?
Thx…

Sorry, hit Post too soon...

Hardware on send and software serial on receive yields: " 254 254 254 254 254 254 254 254 254 254 254 254 254 254 "

OK Thanks for nothin', I figure it out:)

In the course of troubleshooting I'd lowered the baud rate for softwareSerial to 2400, in case that was a problem. Meanwhile I got everything else right, but the XBee's are still at their default 9600 baud setting. I upped it to 9600 in the code and everything works. Hadn't realized I'd need to configure the XBee's to a matching rate.

Couple of days chasing this around, Sigh...:)