Bluesmirf Silver - flow control

I have recently bought a bluesmirf silver and arduino uno.

I am using the arduino to log temperature readings and the bluesmirf module to allow wireless download of the readings. I have written a C# application to do the download. When I send a string to the Arduino it is echoed back and then the recorded temp data is sent.

When I connect over a regular serial port I can correctly send data to the Arduino and have it echoed back correctly. However, when I connect over Bluetooth, the string received by the Arduino is corrupt. This shows up in the received data as the echoed string has the correct first character and then several ? characters. All of the temp data is received correctly over Bluetooth.

Any idea what I am getting wrong? I have already asked this question on stack overflow including linking to my full Arduino and C# source code.

http://stackoverflow.com/questions/8513 … om-c-sharp