Lilypad + Wifly

Hello everyone!

I am currently using the Lilypad from arduino with some accelerometers and temperature sensors and the Wifly module from Sparkfun. I want to send data from the lilypad to a web server via wifly.

For now I connected the Rx,Tx pin of the wifly to Rx,Tx pin of lilypad (pin 0 and 1) and ground and Vdc as specified in the datasheet. I managed to connect to the wifly with TeraTerm and configure my wifly module.

To enter command mode with the terminal I have to enter "$$$". However when I try to do so with the arduino ide it doesn't work. I juste wrote a basic program to send the three characters, it should send me back "CMD" which means it entered command mode but it only echo back "$$$".

void setup(){
  Serial.begin(9600);
  Serial.write("\n");
  Serial.write("$$");
  delay(500);
  Serial.write("\n");
}
void loop(){
}

Did I miss something or should I connect another pin somewhere else?

I juste wrote a basic program to send the three characters, it should send me back "CMD" which means it entered command mode but it only echo back "$$$".

Echo'd it where? Where do you try to read a reply?