Connect MultiWii-GUI via Bluetooth

Post Reply
moreno_87
Posts: 5
Joined: Sun Feb 02, 2014 12:09 pm

Connect MultiWii-GUI via Bluetooth

Post by moreno_87 »

Hello everyone, I am new to this forum. Congratulations is really useful. :P
There are several days that I'm banging my head on a problem I can not solve.
I have an Arduino Mega 2560 with release MultiWi2_3-navi-b5-baro_fix . I would like to connect directly the MultiWii GUI via bluetooth ( hc- 05). I have configured the module hc-05 as a slave and successfully connects with the PC or with the phone but I do not see any data arrive. When I try to connect to MultiWii GUI connection times out .
I think that problem is caused by the Arduino Mega 2560 that does not use the FTDI but Atmega8U2 chip. The module hc- 05 is connected to the serial ports TX0 - RX0 . The speed of the serial port is set to 9600 ( both in the firmware in the module) . I also tried with the other serial ports but nothing .

Note: If I connect MultiWii GUI <- > USB and I listen with a monitor on the COM port bluetooth see the flow of data arriving continuously . When I unplug the MultiWii GUI from USB - flow stops. I think that does not happen handshake on the serial TX0 - RX0 with bluetooth .

I hope you manage to help me. :oops:

scrat
Posts: 925
Joined: Mon Oct 15, 2012 9:47 am
Location: Slovenia

Re: Connect MultiWii-GUI via Bluetooth

Post by scrat »

Exactly what FC do you have?

moreno_87
Posts: 5
Joined: Sun Feb 02, 2014 12:09 pm

Re: Connect MultiWii-GUI via Bluetooth

Post by moreno_87 »

Thanks for the quick response.
My FC is this:

http://arduino.cc/en/Main/arduinoBoardMega2560

User avatar
ezio
Posts: 827
Joined: Sun Apr 01, 2012 11:03 pm
Location: Paris
Contact:

Re: Connect MultiWii-GUI via Bluetooth

Post by ezio »

Have you crossed the Tx and Rx from BT to FC?

User avatar
ezio
Posts: 827
Joined: Sun Apr 01, 2012 11:03 pm
Location: Paris
Contact:

Re: Connect MultiWii-GUI via Bluetooth

Post by ezio »

Also remember that MultiWii has to be queried to send data.

moreno_87
Posts: 5
Joined: Sun Feb 02, 2014 12:09 pm

Re: Connect MultiWii-GUI via Bluetooth

Post by moreno_87 »

Hello Ezio,
I have crossed TX0 and RX0 but nothing.
It should not be the MultiWii-GUI software to query the MultiWii when trying to connect to the COM port? Do you remember how you make the query? :P


Thanks :D

User avatar
ezio
Posts: 827
Joined: Sun Apr 01, 2012 11:03 pm
Location: Paris
Contact:

Re: Connect MultiWii-GUI via Bluetooth

Post by ezio »

Do you have your USB cable disconnected from the FC when you are trying the BT?

You can try connect bt module to another serial port as the communication should work on any port.

Also try to change the speed of the module to 115200. Because 9600 is quite slow (but it should work)
Some time ago I have wrote very simple arduino sketch to do it. It is here: https://github.com/eziosoft/btsetup
I haven't tested it on Arduino mega.

Bart

jhitesma
Posts: 36
Joined: Wed Nov 20, 2013 5:41 pm

Re: Connect MultiWii-GUI via Bluetooth

Post by jhitesma »

FWIW I have no problems connecting my mega based MW over bluetooth to ezio's android app. But connecting with the same hardware and settings to the conf program (either the java one or eosbandi's windows one) on my computer with bluetooth results in misery. Sometimes it seems to work...but then randomly hangs or disconnects or even worse just results in garbage.

Of course I'm just using a super ultra cheap BT dongle on my PC and have really never had much luck with anything BT and windows playing nice together. So my issues don't seem to be specific to MW over BT but rather just BT under windows being miserable.

moreno_87
Posts: 5
Joined: Sun Feb 02, 2014 12:09 pm

Re: Connect MultiWii-GUI via Bluetooth

Post by moreno_87 »

Hello everyone, I finally managed to connect MultiWii GUI via bluetooth. The main problem is that I had to connect to the serial port TX1and RX1 and not 0. :shock: I also increased the speed to 115200. Thank Jhitesma Ezio and Scrat for support.
Ezio finally also works your app .... Thanks a lot :D :D :D :D

scrat
Posts: 925
Joined: Mon Oct 15, 2012 9:47 am
Location: Slovenia

Re: Connect MultiWii-GUI via Bluetooth

Post by scrat »

Sorry I didn't think to change to serial port 1. Glad you've managed to get it working.

moreno_87
Posts: 5
Joined: Sun Feb 02, 2014 12:09 pm

Re: Connect MultiWii-GUI via Bluetooth

Post by moreno_87 »

Initially I also performed the test on serial 1 but it did not work because it is defective and the speed was set to 9600 instead of 115200. Thanks anyway :P

guy1a
Posts: 7
Joined: Sat Jun 23, 2012 3:56 pm

Post by guy1a »

Can any one provide a link please to how change the bt module speed ? Thank you

sismeiro
Posts: 173
Joined: Tue Feb 21, 2012 12:33 pm

Re: Connect MultiWii-GUI via Bluetooth

Post by sismeiro »

Hi,

Just search the forum: http://www.multiwii.com/forum/viewtopic.php?f=6&t=133&start=150#p28564.

Regards,
Luis Sismeiro

Slacsteve
Posts: 9
Joined: Sun Mar 31, 2013 8:04 pm

Re: Connect MultiWii-GUI via Bluetooth

Post by Slacsteve »

moreno_87 wrote:Hello everyone, I finally managed to connect MultiWii GUI via bluetooth. The main problem is that I had to connect to the serial port TX1and RX1 and not 0. :shock: I also increased the speed to 115200. Thank Jhitesma Ezio and Scrat for support.
Ezio finally also works your app .... Thanks a lot :D :D :D :D


Did you have to make any changes to v2.3, config.h?

What BT did you use?

Post Reply