NewSoftSerial not printing

Hi am trying out this example for newsoftseril and i dont seems to get the print statement working on my serial monitor. In this case when the serial monitor is on baud 57600 i can see "Goodnight moon!" print. But when I change the baud to 4800 or any other baud nothing shows up. please help. :exclamation

#include <NewSoftSerial.h>

NewSoftSerial mySerial(2, 3);

void setup()  
{
  Serial.begin(57600);
  Serial.println("Goodnight moon!");

  // set the data rate for the NewSoftSerial port
  mySerial.begin(4800);
  mySerial.println("Hello, world?");
}

void loop()                     // run over and over again
{

  if (mySerial.available()) {
      Serial.print((char)mySerial.read());
  }
  if (Serial.available()) {
      mySerial.print((char)Serial.read());
  }
}

The whole point of newsoftserial is so that you can send serial data to something other than the USB port (pins 0 and 1).

If you plugged a serial LCD into pin 3 for example and changed the baud rate to suit (normally 9600) then you would find that it would show on the LCD.

What are you wanting to do with it?

Mowcius

Hi mate this is the problem am facing. am trying to revive serial data (bluetooth rn 42)through port 2 and 3 as the rx and tx need to be reversed.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1273527361