serial communication using serial1

I want to communicate the arduino with a Basic Stamp using Serial1 command, but it doesn't work. I don't know where is the problem, in Arduino or BS code. Here is my code. "Hello world" works well, but no signal received at the receiving port of BS from Serial1. Is the code correct? Can anybody help me?

void setup()
{
Serial.begin(9600);
Serial1.begin(4800);
}

void loop()
{
Serial.println("hello world");
Serial1.write(45); // send a byte with the value 45
}
}

Assuming you have a Mega, then that code is fine.

"Hello world" works well, but no signal received at the receiving port of BS from Serial1.

How is the BS connected to the Mega?

dxw00d:
Assuming you have a Mega, then that code is fine.

Thank you. The problem is really not here, it's in BS.

PaulS:

"Hello world" works well, but no signal received at the receiving port of BS from Serial1.

How is the BS connected to the Mega?

It works now, thank you.