Adding Bluetooth module

Hardware Support for the 9XR Pro
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Adding Bluetooth module

Post by jhsa »

Ok. That's this one sorted then.
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
Dbswans
Posts: 101
Joined: Fri Dec 25, 2015 12:06 am
Country: -

Re: Adding Bluetooth module

Post by Dbswans »

Lol thanks again man you guys are great !!


Sent from my iPhone using Tapatalk
User avatar
Dbswans
Posts: 101
Joined: Fri Dec 25, 2015 12:06 am
Country: -

Adding Bluetooth module

Post by Dbswans »

Image


Connected yay !!!!
Lol new screen on its way


Sent from my iPhone using Tapatalk
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

hello :)
I have Turnigy 9XR PRO FrSky DJT (converted), ArduPilot (QUANUM NOVA) -> Arduino Pro Mini -> FrSky receiver D4R-II (project https://code.google.com/archive/p/er9x-frsky-mavlink/ )
Software radio ersky9x-R218
Receiving telemetry works well.
Now I added to ArduPilot (QUANUM NOVA) telemetry 3DR (433Mhz) ground receiver connected to the Bluetooth module HC-05 (my name Telemetry) - working with the tablet (program TOWER) and laptop (program Mission Planner) OK.
I have now - telemetry in one direction on the radio by FrSky, and bi-directional telemetry by 3DR (tablet or laptop)
Now I added Bluetooth HC-05 (my name Turnigy 9XR PRO) radio Turnigy 9XR PRO (as described viewtopic.php?f=122&t=5641&start=90)
In the Bluetooth menu, I set BT Role - MASTER
What to do to telemetry data were sent directly to the telemetry 3DR radio (without FrSky) and also bi-directionally to and from the tablet or laptop (bridge)
is it possible ?
Do I have to change the software in the Arduino Pro Min for example. APM_Mavlink_to_FrSky.zip (19-Mar-2016 22:10 Airspeed fixes)?
What software to upload to the radio (eg. Ersky9xr_rom.zip
19-Mar-2016 22:09 Airspeed fixes)
What set?

regards
Darek
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding Bluetooth module

Post by MikeB »

Could you draw a diagram of the arrangement please? I'm not clear exactly what you wish to achieve.

If you update the Pro Mini with this: APM_Mavlink_to_FrSky.zip, and update the radio with this: Ersky9xr_rom.zip 19-Mar-2016 22:09 Airspeed fixes, then you get the MavLink telemetry converted by the Pro Mini to FrSky format and the radio get an extra telemetry display specifically for the MavLink information, as well as the telemetry mapping to existing named items.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding Bluetooth module

Post by MikeB »

Diagram sent to me via PM, reposted so all information is available:
file.jpeg
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Adding Bluetooth module

Post by jhsa »

version 1 not possible because as far as I know the bluetooth module can only connect to one device at the time.. at least the HC-05.

Version 2 should be possible??

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

Ver. 1
com 2 can use to connect additional USB to communicate with your tablet or laptop ?
ver. 2
conwerter mavlink / FrSky would have to be two-way and you need to apply an additional bidirectional converter in the transmitter (maybe it can be done software Turnigy 9xrPRO) ?
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding Bluetooth module

Post by MikeB »

At the moment I think the only setup that might work is:
Use your version 1 to get data onto your Tablet/laptop.
Feed the Tx data from flight controller to the Arduino, then to a FrSky receiver to get the telemetry on the Tx.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

OK I understand
telemetry on radio by FrSky unidirectional
telemetry and control ardua (NOVA) for laptop or tablet through 3DR bidirectionally.

I have a problem with loading APM_Mavlink_to_FrSky.zip to ARDUINO PRO MINI.
Program Arduino 1.0.3
During the verification ERROR COMPILATION
Info. Mavlink.cpp: 184: 22: error: invalid suffixs "f" on integer constant
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Adding Bluetooth module

Post by jhsa »

You might need to upgrade your arduino IDE.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

The latest version 1.6.8 ARDUINO during verification ERROR Copy
exit status 1
unable to find a numeric literal operatior 'operatior' '' f '
What version are you using?
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding Bluetooth module

Post by MikeB »

Just remove the 'f', a small error I haen't corrected yet.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

Thank you Mike
Now verification is OK, but there is a problem with uploading on the plate
Arduino 1.6.8
Programmer USB to TTL
USB drivers installed (included in Arduino 1.6.8 / Drivers)
Connections Tx> Rx Rx> Tx
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding Bluetooth module

Post by MikeB »

Have you got any other signals (DTR?) connected from the programmer to the Pro Mini?
If not, then just as the compile completes, and the IDE is about to upload, you need to press the reset button on the Pro Mini.

I'm assuming you have set the board type and Com port in the IDE.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

hello

again added USB drivers and works

Tomorrow I will be tested

Darek
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

Hello

how to set ranges mixer channel 5 to use modes flights (RTL, HOLD, stabilizers, etc.)
I have set 6 items:
CH5 + 74% FULL Switch (ID0)
+ 42% FULL Switch (ID1)
+ 17% FULL Switch (ID2)
- 60% FULL Switch (AIL)
it does not work well
they are not a good setting for the calibration of radio MisionPlanner (only 5 items)

Darek
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Adding Bluetooth module

Post by jhsa »

Try to make them replace mixes.

When editing a mix scroll down and change Multiplex to "Replace"

CH5 + 74% FULL Switch (ID0)
R + 42% FULL Switch (ID1)
R + 17% FULL Switch (ID2)
R - 60% FULL Switch (AIL)

How it works? The last active (switch ON) mix will replace all the others above. The first one doesn't need to be a replace mix as it will be active only when all the others are OFF anyway.
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

SUCCESS !!
The correct settings are:
CH5 + 100% FULL Switch (ID0)
R + 50% FULL Switch (ID1)
R + 20% FULL Switch (ID2)
* -90% FULL Switch (AIL) - MULYIPLY
now possible to set 6 flight modes


Unfortunately, there is inconsistency display flight modes:
screen tablet LAND radio screen UNKNOWN
screen tablet RTL radio screen FBWB
screen tablet DRIFTekran radio RTL
screen tablet Stabilize radio screen MANUAL
screen tablet POSHOLD radio screen UNKNOWN
screen tablet loiter radio screen FBWB
Radio calibrated MissonPlanner

Radio telemetry is sent through FrSki and converter FrSky / Mavlink (ARDUINO MINI PRO software APM_Mavlink_to_FrSky.zip (19-Mar-2016 22:10 Airspeed fixes)
Tablet is sent in parallel via telemetry 3DR -> BT
Software radio(Turnigy 9xrPro) Ersky9xr_rom.zip 19-Mar-2016 22:09
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding Bluetooth module

Post by MikeB »

Go to the telemetry menu and for the Usr Proto select "ArduC" instead of "ArduP" (ArduCopter instead of ArduPlane).

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

Thank you
correct settings for Quadrocopter:
Telemetry
UserProto ArduC Met
BT Telemetry OFF
FrSky Com Potr 1
Invert COM 1 OFF
COM 2 Func. Telemetry
COM 2 Baud rate 57600

Darek
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

Hello

you can set the Telemetry / Custom Display displays the flight mode?

Darek
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding Bluetooth module

Post by MikeB »

Not at the moment. It is sent back as part of the Temp1 value.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

Thanks for your help .

Darek
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding Bluetooth module

Post by MikeB »

I have a change done so Temp1 will display as the MavLink flight mode if the telemetry Usr Proto is ArduP or ArduC.

Mike.

Edit: Test version posted with this in.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

hello

Tomorrow both load the new files, and write how they work

Darek
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

hello
where ist TEMP1?
The telemetry / custom menu? there is not

Darek
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Adding Bluetooth module

Post by MikeB »

It's called "T1=" I think.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
darektv11
Posts: 25
Joined: Fri Oct 16, 2015 8:46 pm
Country: Poland

Re: Adding Bluetooth module

Post by darektv11 »

thank you
IcePick
Posts: 2
Joined: Wed Apr 20, 2016 2:02 am
Country: -

Re: Adding Bluetooth module

Post by IcePick »

Can someone help me with blank screen when powered on after trying this mod.
I have it working on my 9xtreme and wanted to add to my 9xr pro

I got the connect pin wired up and worked after that, made a connector for com3
plugged in the wires to the BT module turned on and all I get is the blue LED

unplugged and still only get blue led

if I connect to USB my computer makes the USB connection noise but I dont see any devices show up.

Did I kill my transmitter?

thanks for any help you can provide

Post Reply

Return to “Turnigy 9XR PRO radio”