I have a device with an RN-42 bluetooth module in it. It sends out a serial stream of human readable data. I am trying to read this by using a bluesmirf connected to a pro-mini. I am presently trying to relay the bluetooth data thru an FTDI cable to my computer screen to see that I am reading the bluetooth data correctly - I think I am not.
I can read by original device’s bluetooth serial data using coolterm on my mac.
I can send hard coded serial over FTDI from the pro-mini OK.
But when I try to relay the data by:
#include <SoftwareSerial.h>
int txPin = 7; // software serial transmit pin
int rxPin = 4; // software serial receive pin
SoftwareSerial bluetoothSerial( rxPin, txPin ); // Rx, Tx
void setup() {
bluetoothSerial.begin( 115200 );
Serial.begin(9600);
}
void loop() {
if(bluetoothSerial.available())
{
char received = bluetoothSerial.read();
Serial.print(received);
}
//delay(25);
}
The FTDI serial on my screen looks like this:
e…{…,…{.a.t.s.r…n{.{…n"…{Wn.r5{{.u{{…t{…i.{.ni.{…a.tu.5t{.u…
Any thoughts on what might be wrong here?