ANDROID WAVE SHIELD PROBLEM

#include <MeetAndroid.h>

#define IDLE 0
#define RINGING 1
#define OFFHOOK 2

MeetAndroid meetAndroid;
int onboardLed = 13;
int serIn;
void setup()
{

Serial.begin(115200);

meetAndroid.registerFunction(phoneState, ‘A’);
meetAndroid.registerFunction(ReceiveSMS, ‘B’);

pinMode(onboardLed, OUTPUT);
digitalWrite(onboardLed, HIGH);

}

void loop()
{
meetAndroid.receive();
}

void phoneState(byte flag, byte numOfValues)
{
// phone state
int state = meetAndroid.getInt();

switch (state)
{
case IDLE: idle(); break;
case RINGING: ringing(); break;
case OFFHOOK: offhook(); break;
}
}

void ReceiveSMS(byte flag, byte numOfValues)
{
int minutes = meetAndroid.getInt();

Serial.print("Arduino heard you say: ");
while (Serial.available()>0)
serIn = Serial.read(); //read Serial
Serial.print(serIn, BYTE);

}

void idle()
{

Serial.print("-----------");
meetAndroid.send(“idle--------”);
}

void ringing()
{

Serial.print("-----------");
meetAndroid.send(“ringing------------”);

// Here’s where i need to send the ASCII character, any help would be greatly appreciated

}

void offhook()
{

Serial.print("-----------");
meetAndroid.send(“call accepted--------”);
}

Dumb poll. There are no meaningful choices.

The hardware serial ports, because of built-in hardware support, can manage baud rates of 115,200. The software serial ports, because they are not using the hardware support, can not manage that speed.

If you really need that speed, you need an Arduino with more than one hardware serial port.