SoftwareSerial bug in Arduino 101 and sollution

Hello,

I'm using an Arduino 101 Curi board. I was trying to use the BLE included system, but it was just not possible to handle a fast serial stream coming out of the board. So I added a HC-06 Bluetooth to create a Serial port through Bluetooth using SoftwareSerial.
Receiving data worked correctly , but Transmitting did NOT ! After several different tests, I attached the TX output pin to my scope and noticed that the signal was not a clean pulse train. I tried the same on a Arduino UNO , and that worked fine with a clean pulse train on the same baud speed.
I was ready to give up on the Arduino 101 , but decided to try one more thing.
I added the pinMode(txPin, OUTPUT) just before the beginning the softwareserial . That FIXED the problem ! OI get a clean Tx pulse train and the serial connection transmission works great !

This is the sollution ...

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10,11);

void setup() {
pinMode(11,OUTPUT);
mySerial.begin(9600);
}

Just FYI since I did not find the solution anywhere online ! :slight_smile: