Page 1 of 1
Bluetooth and Crius AIO Pro
Posted: Wed Mar 26, 2014 11:57 am
by wiwitop
Hello,
I bought an HC-06 bluetooth module that I'm trying to connect to my Crius AIO Pro V1.1 (From HK).
With AT Commands, I configured it at 115200 bauds as multiwii expected it. I'm sure it's working properly because I tested it with my Arduino UNO.
I'm able to read at 115200 bauds (with putty) the values received from bluetooth.
But, I don't understand why it doesn't work on my Crius AIO Pro connected to Wingui through Bluetooth (I have no problem with USB). I'm sure it's properly connected.
And to be sure, i tried to permute data connectors.
I got a timeout. Some suggestions to debug it ?
Thanks.
Re: Bluetooth and Crius AIO Pro
Posted: Fri Mar 28, 2014 7:44 am
by ezio
Is your usb cable connected while you try the Bluetooth?
Re: Bluetooth and Crius AIO Pro
Posted: Fri Mar 28, 2014 10:54 am
by wiwitop
USB was not plugged.
I'm thinking about installing a sketch to test my Crius AIO Pro.
Something like that :
Code: Select all
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println("test");
}
That should work, right ?
Re: Bluetooth and Crius AIO Pro
Posted: Sun Mar 30, 2014 5:58 am
by PatrikE
Load MultiSerialMega sketch included in Arduino Examples.
Then you can test communicating between the serial ports.
Code: Select all
void setup() {
// initialize both serial ports:
Serial.begin(115200);
Serial1.begin(115200);
}
void loop() {
// read from port 1, send to port 0:
if (Serial1.available()) {
int inByte = Serial1.read();
Serial.write(inByte);
}
// read from port 0, send to port 1:
if (Serial.available()) {
int inByte = Serial.read();
Serial1.write(inByte);
}
}
Re: Bluetooth and Crius AIO Pro
Posted: Sun Mar 30, 2014 5:12 pm
by wiwitop
I used this sketch with success on my Crius AIO (received "Test module HC-06 bluetooth" on putty @ 115200 bauds, USB was not connected)
int counter = 0;
unsigned long time;
void setup() {
Serial.begin(115200);
Serial.println("Start");
}
void loop(){
Serial.print("Test module HC-06 bluetooth");
Serial.print(++counter);
Serial.print(" " );
time = millis();
Serial.println(time);
delay(1000);
}
So I don't think there are problems with my bluetooth module or my flight controller.
So why it doesn't work with Wingui or Multiwiiconf ?

I'm using multiwii 2.3, should I use another version ?
Re: Bluetooth and Crius AIO Pro
Posted: Sun Mar 30, 2014 7:35 pm
by NikTheGreek
I guess that you have to set up communication speed at 57600..
Re: Bluetooth and Crius AIO Pro
Posted: Mon Mar 31, 2014 10:33 am
by wiwitop
NikTheGreek wrote:I guess that you have to set up communication speed at 57600..
Hello,
Multiwii was not supposed to work @ 115200 bauds ?
I already tried @ 57600.
I changed this code in config.h:
Code: Select all
#define SERIAL0_COM_SPEED 115200
#define SERIAL1_COM_SPEED 115200
#define SERIAL2_COM_SPEED 115200
#define SERIAL3_COM_SPEED 115200
Then I sent "AT+BAUD7" on my bluetooth module.
Then I used Wingui to be able to change communication speed. That worked with USB, not with Bluetooth.
For my next try, i will modify multiwii code to add my previous code.