Collection: HowTo config various BT modules

Post Reply
User avatar
Hamburger
Posts: 2582
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: Collection: HowTo config various BT modules

Post by Hamburger »

test against another computer with the correct GUI for your mwii version.
Use cable first, only then switch to BT bridging.

User avatar
haydent
Posts: 583
Joined: Sun Jun 17, 2012 1:35 am
Location: NSW, AU

Re: Collection: HowTo config various BT modules

Post by haydent »

i did set mw versien.

i also have no problems with ftdi usb cable and windows.

i will look into trying between my laptop bluetooth and mw instead of via fone

chris ables
Posts: 317
Joined: Wed Feb 08, 2012 8:42 pm
Location: United states

Re: Collection: HowTo config various BT modules

Post by chris ables »

http://www.rctimer.com/index.php?gOo=go ... oductname= i bought this and didnt have to configure anything in firmware and it works great ! CHEAP TOO! That is on my phone though , i havent tried pc yet and may have to change something to use on pc ! But i thought i'd share this with phone users !

User avatar
haydent
Posts: 583
Joined: Sun Jun 17, 2012 1:35 am
Location: NSW, AU

Re: Collection: HowTo config various BT modules

Post by haydent »

yeah im thinking i will just have to buy a new one considering how cheap they are.

User avatar
brettwal
Posts: 93
Joined: Mon Jun 18, 2012 4:51 pm
Location: Louisiana

Re: Collection: HowTo config various BT modules

Post by brettwal »

I have a Mega 2560 board (GLB $69 board w/ IMU) and a bluetooth module (JY-MCU v1.03). If I connect the BT module to the FTDI port on the FC, I get data in the GUI. If I connect the BT Module to any of the Serial ports on the FC, I do not get data. Is there anything that I need to change in the code to make this work on one of the Mega Serial ports instead of the FTDI?? Is it possible to run on a serial port?

Thanks

User avatar
haydent
Posts: 583
Joined: Sun Jun 17, 2012 1:35 am
Location: NSW, AU

Re: Collection: HowTo config various BT modules

Post by haydent »

i have this exact board and problem. ive tried two bluetooth boards now with no difference...

does anyone know if there's somewhere in the code to choose the port it is plugged into like with gps ?

User avatar
haydent
Posts: 583
Joined: Sun Jun 17, 2012 1:35 am
Location: NSW, AU

Re: Collection: HowTo config various BT modules

Post by haydent »

i got it working !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

i love open source !!!!!!!!!!!!!!!!!

so i started reading the code to work out how it does what it does via serial and it became clear that Serial 0 is the port its using for these messages for gui or phone via bt...

mega has 4 serial. on our board 0 is used for ftdi and bt, it would be nice to have bt on serial 1 (or whichever one you specify) instead !!!

ive been confused thinking ftdi pins on fc are a different type of port but they are really just a serial port with different pin numbers to the others, its on the ftdi/usb adapter where the translation occurs....

anyway you have to jack power from serial 1, here's my pic:

P1010875.JPG

User avatar
brettwal
Posts: 93
Joined: Mon Jun 18, 2012 4:51 pm
Location: Louisiana

Re: Collection: HowTo config various BT modules

Post by brettwal »

haydent wrote:i got it working !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

i love open source !!!!!!!!!!!!!!!!!

so i started reading the code to work out how it does what it does via serial and it became clear that Serial 0 is the port its using for these messages for gui or phone via bt...

mega has 4 serial. on our board 0 is used for ftdi and bt, it would be nice to have bt on serial 1 (or whichever one you specify) instead !!!

ive been confused thinking ftdi pins on fc are a different type of port but they are really just a serial port with different pin numbers to the others, its on the ftdi/usb adapter where the translation occurs....

anyway you have to jack power from serial 1, here's my pic:

P1010875.JPG




So did you find where in the code to change it from COM 0 ?

User avatar
haydent
Posts: 583
Joined: Sun Jun 17, 2012 1:35 am
Location: NSW, AU

Re: Collection: HowTo config various BT modules

Post by haydent »

i found areas where it is specifying serial 0 for this job, i didnt look for them all though. but if you chango it you will also be changing your ftdi connection to that port (eg 1) as it doesnt differentiate between bt and ftdi/usb communications, they are all handled by the same protocol code regardless.

for now im not bothered trying to mod it as i can just switch my bt and ftdi plug as needed.

i did start a fix request here though viewtopic.php?f=7&t=2218

Post Reply