MiguelNSPA / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

HB-01 bluetooth module connects ONLY if powered AFTER 15 secs of pressing the connect button on APM #920

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Tried for many hours to make mavlink connect over bluetooth on my ATMEGA2560 
with no success... tried every port every speed.. nothing.. i read in some 
forums about power on-off the bluetooth module and after many tries i managed 
to reproduce the problem for sure...

Opening APM Mission planner, and pressing connect (115200) on bluetooth com 
port makes the program freeze while searching the bluetooth device... after 
about 15 seconds if i power the whole FC system (with bluetooth on it), it 
connects normally as with USB cable...

Needs some kind of delay? thanks in advance!

Original issue reported on code.google.com by gsfak...@gmail.com on 31 May 2013 at 8:23

GoogleCodeExporter commented 9 years ago
Hi, I have the same problem.
Tested with two HC-06 Bluetooth modules 
http://www.mikrokopter.de/ucwiki/en/HC-06  
BT firmwares are linvor v1.6 and v1.8
My conclusion is that Mission Planner doesn't manage correctly this type of 
Bluetooth modules. 
Below are the reasons why I reached this conclusion:
- Connection successful using putty terminal emulator through the Bluetooth 
link.
- Connection successful with a Multiwii Flight Controller using the 
MultiwiiConf software
- Connection successful with my Flight Controller from Mission Planner using 
Terminal mode, I receive the FC menu and can send commands without any problem.
- Connection fails when I try to connect from Connect button on Mission Planner 
(not terminal mode). In this case, the only way I made to work is: 1. Power up 
the FC without the BT, 2. Press connect button on Mission Planner, 3. Power up 
the BT module when the window “Navlink connection” pops up, 4. Mission 
Planner connects correctly with the BT module.
Users can use this “trick” each time they need to connect Mission Planner 
with their FC but a fix of this problem would be a great for everybody.
All the tests have been made with the same BT module without changing any 
configuration.
I hope finally this issue gets fixed.
Thanks on advance.

Original comment by chacal1...@gmail.com on 4 Feb 2014 at 10:12

GoogleCodeExporter commented 9 years ago
After trying hard to find a solution to HC-06 connection problem to Mission 
Planner, I found the solution is to use APM planner. I just enable Emit 
hearbeat on the MAVlink protocal comm setting and it is working perfectly for 
me.

Original comment by efigabr...@gmail.com on 5 May 2014 at 1:18

GoogleCodeExporter commented 9 years ago
I just want to confirm I have this problem as well. Mission Planner 1.3.5.  I 
can connect with PUTTY and Bluetooth via my Android phone. The only temporary 
fix was listed above. To remove the BT module and then hit connect. Immediately 
plug in the Bluetooth module on the flight controller. If timed right, it will 
connect.

Detailed Error lists:
Element Not Found

Original comment by spess...@gmail.com on 25 Jun 2014 at 3:41

GoogleCodeExporter commented 9 years ago
The same issue for my HC-06 Bluetooth module. It's really sad, because it's 
easier to connect USB or telemetry instead. APM planner works great with HC-06, 
however I hope that this issue wll be fixed in Mission Planner too.

Original comment by eXtr...@gmail.com on 5 Sep 2014 at 11:09