Taranis and DSM2 mods

Hardware help and support for the FrSky Taranis
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Taranis and DSM2 mods

Post by Kilrah »

The production Taranis is REV4, not REV4a. REV4a (proto) had a different EEPROM size, hence the reformat.

JohnAustin
Posts: 11
Joined: Thu Oct 03, 2013 11:26 am
Country: -

Re: Taranis and DSM2 mods

Post by JohnAustin »

That was it ! Many thanks
I can now compile and install from both FrSky and OpenTx sources using
Mentor Sourcery CodeBench Lite Edition
arm-2013.05-23-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
The plane configs are not lost when updating and the Tx appears to be
functioning correctly - not fully tested
Maybe this will help with testing of the DSMX module software
Thanks again
John
dusan
Posts: 10
Joined: Wed Oct 23, 2013 5:37 pm
Country: -

Re: Taranis and DSM2 mods

Post by dusan »

So an orange dsmx module from hobbyking will work?
Daedalus66
Posts: 1844
Joined: Tue Dec 27, 2011 8:22 pm
Country: -
Location: Ottawa

Taranis and DSM2 mods

Post by Daedalus66 »

dusan wrote:So an orange dsmx module from hobbyking will work?
The Orange DSM module works fine as a standard module using PPM input. But that's not what is being discussed here.

This thread is about using a module from a Spektrum transmitter (DX4e typically) to function with the serial data stream just like it does in the Spektrum transmitter, including giving low latency and Model Match capability. This requires a special version of OpenTX, not yet available.
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: Taranis and DSM2 mods

Post by Mechcondrid »

i see in the change logs that the logic analyzer has shown correct packet formation for dsm2 hack modules? is there someone that has a prebuilt binary for the taranis (i'm trying to get it built but my cygwin is being stupid after a computer format and restore; mainly its giving some c**p about primary expresions being expected when it looks to be formed correctly, and also an error about a command called bc not being found)

bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Taranis and DSM2 mods

Post by bertrand35 »

Yes I worked on DSM2 during the week-end. Send me an email with the options you like for openTX, I will build a FW for you.
heliphil
Posts: 45
Joined: Thu Apr 26, 2012 2:35 pm
Country: -

Re: Taranis and DSM2 mods

Post by heliphil »

Bertrand, does this mean a version to use the DX4,5,or 6 home made module is almost there??? :D :D :D
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: Taranis and DSM2 mods

Post by Mechcondrid »

ok sent a pm because i dont know your email.
also i figured outt he bc command issue had to compile the binaries for cygwin
but now even though the fw compiles and i get a hex i flash it and the radio doesnt boot at all, now i notice it (the make file) thinks that the taranis is an avr device? i was under the impression that it is an arm device?


edit: nvm i just realized i wasnt using all caps for the build options lol i tupid
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Taranis and DSM2 mods

Post by bertrand35 »

heliphil wrote:Bertrand, does this mean a version to use the DX4,5,or 6 home made module is almost there??? :D :D :D
I think so. I spent a couple of hours with the debugger and the logic analyser and I got something not too bad. I asked Mike to review my changes and he was not worried, so I cross the fingers for the tests from people who own a DSM2 module.
heliphil
Posts: 45
Joined: Thu Apr 26, 2012 2:35 pm
Country: -

Re: Taranis and DSM2 mods

Post by heliphil »

pm'd
yay
Posts: 6
Joined: Mon Jun 04, 2012 12:37 pm
Country: -

Re: Taranis and DSM2 mods

Post by yay »

pm'd :)
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Taranis and DSM2 mods

Post by bertrand35 »

Well we have people currently testing now, thanks.
One already confirmed it works.
I will wait for an answer from the 2 others.
User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Taranis and DSM2 mods

Post by ShowMaster »

I just flashed the dsm2 opentx FW version.
If the wife won't let me play I till afternoon due to shopping, I'll report my success later today.
User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Taranis and DSM2 mods

Post by ShowMaster »

Update,
I just successfully bound a ar6100 Spektrum and a HK orange dsm2 with satellite receiver to a dx4 module I made.
I didn't do a range check but but the opentx build on my Taranis is working!
In fact I also have it setup to have the internal Frsky ch 1-8 and the ext dsm2 as 9 and higher and S1 pot it controlling a servo on the first channel (9) of the orange rec.
The model match also seems to work fine.
Good work!
Only test left is to fly it. My home built dsm module hasn't been flown so I have no idea on that but on the bench it's all working 100%.
dang
Posts: 11
Joined: Sun Jul 07, 2013 1:33 pm
Country: United States
Location: Olympia and Westport, Washington

Re: Taranis and DSM2 mods

Post by dang »

Can someone throw up a pointer to the instructions to build a homegrown out of a DX4? I used to have that link, got the module all desoldered and have a case but am not sure of the specifics.

Thanks!
EjectSteve
Posts: 53
Joined: Mon Dec 31, 2012 9:47 pm
Country: -

Re: Taranis and DSM2 mods

Post by EjectSteve »

Here is one of the main ones:
http://openrcforums.com/wiki/index.php/ ... Mod_DSM2/X

This one is internal, may not be what you want for the Taranis:
http://openrcforums.com/wiki/index.php/ ... M_protocol

I put some notes together here:
http://openrcforums.com/forum/viewtopic ... 150#p48608

Right now I'm gearing up to compile the version with the dsm2 mod in it.

If I want the code with the dsm2 mod, would this still be correct?


****************************
Retrieve the source code¶

The source code is hosted on googlecode. Fetch a copy of the latest version by executing this command:

svn checkout http://opentx.googlecode.com/svn/trunk/ opentx
****************************

I have some Linux experience but an pretty green on compiling anything. I'm going through the wiki:
http://code.google.com/p/opentx/wiki/Li ... structions
heliphil
Posts: 45
Joined: Thu Apr 26, 2012 2:35 pm
Country: -

Re: Taranis and DSM2 mods

Post by heliphil »

I checked it out last night with an Eflite MCX which bound and flew perfectly( DSM2) ( already had the settings from my old ER9X) - will have to wait for the weekend to do further tests with the other BNF's and rx's that I have but all looks good so far

I am using a RF board from a DX5e
EjectSteve
Posts: 53
Joined: Mon Dec 31, 2012 9:47 pm
Country: -

Re: Taranis and DSM2 mods

Post by EjectSteve »

After you compile opentx, is there a way to load that version into Companion9x?
heliphil
Posts: 45
Joined: Thu Apr 26, 2012 2:35 pm
Country: -

Re: Taranis and DSM2 mods

Post by heliphil »

as in allow Companion9X to have a drop down box to select DSM2 etc for the external module - no , it would have to be incorporated into the program. If you just mean to upload it to the TX via Companion9X then goto write flash memory and open the bin file you have created
EjectSteve
Posts: 53
Joined: Mon Dec 31, 2012 9:47 pm
Country: -

Re: Taranis and DSM2 mods

Post by EjectSteve »

I guess I'm over my head here. I was able to compile a version - they system said it was version opentx-r2859 216

It flashed ok, but the Taranis boot warned that it had to 'update the eeprom'. That went ok, but I didn't see any dsm2 options for the external module. I'm sure I missed something obvious like 'duh you downloaded the wrong source code' or 'used the wrong "make" options.

I flashed back to 2834 215. The taranis wiped my existing eeprom, but I had a backup. So I think all this stuff is cool, and it is great that you can mess up as bad as me and put everything back the way it was.
pmullen503
Posts: 277
Joined: Sun May 06, 2012 8:37 pm
Country: -
Location: Fond du Lac, WI

Re: Taranis and DSM2 mods

Post by pmullen503 »

Does anyone know if the empty DM9 module case will fit without interfering with the Taranis handle?
EjectSteve
Posts: 53
Joined: Mon Dec 31, 2012 9:47 pm
Country: -

Re: Taranis and DSM2 mods

Post by EjectSteve »

It fits. Many people are using the dm9 for dsm2 right now (including me)
pmullen503
Posts: 277
Joined: Sun May 06, 2012 8:37 pm
Country: -
Location: Fond du Lac, WI

Re: Taranis and DSM2 mods

Post by pmullen503 »

EjectSteve wrote:It fits. Many people are using the dm9 for dsm2 right now (including me)
Good, I'd like to stuff a DSM2/X module and 3.3V BEC into that case for use in my Taranis or 9x.
EjectSteve
Posts: 53
Joined: Mon Dec 31, 2012 9:47 pm
Country: -

Re: Taranis and DSM2 mods

Post by EjectSteve »

Give this a try:
http://openrcforums.com/forum/viewtopic ... 150#p48608

It worked for me with er9x on a Turnigy 9x radio. Guys, where would be a good forum to get help on compiling?

I get all the way to the point where this works and outputs an opentx.bin file, make PCB=TARANIS

But I'm not sure about the "make" options to get the dms2 build created. Or maybe it is just as simple as that command and I am overthinking this. Thanks.
Daedalus66
Posts: 1844
Joined: Tue Dec 27, 2011 8:22 pm
Country: -
Location: Ottawa

Re: Taranis and DSM2 mods

Post by Daedalus66 »

pmullen503 wrote:Does anyone know if the empty DM9 module case will fit without interfering with the Taranis handle?
yes. I use the Spektrum module in my Taranis.
JohnAustin
Posts: 11
Joined: Thu Oct 03, 2013 11:26 am
Country: -

Re: Taranis and DSM2 mods

Post by JohnAustin »

I have flown with a "standard" PPM DM9 module in the Taranis - No problems -
I also have a DM9 case with the guts of DX4e inside ready to go
svn checkout http://opentx.googlecode.com/svn/trunk/ opentx Is that right ???
Checked out revision 2860
Using gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2
DSM2 = SERIAL is that the right ??? (Full option list given below)
Gives these errors when linking
allsrc.o: In function `init_pa7_dsm2':
/home/ja/Soaring/FrSky_OpenTx_Companion9x/OpenTx/2013_11_07_14_15/opentx/src/targets/taranis/pulses_driver.cpp:448: undefined reference to `setupPulsesDSM2(unsigned int)'
allsrc.o: In function `NVIC_EnableIRQ':
/home/ja/Soaring/FrSky_OpenTx_Companion9x/OpenTx/2013_11_07_14_15/opentx/src/targets/taranis/../../targets/taranis/STM32F2xx_StdPeriph_Lib_V1.1.0/Libraries/STM32F2xx_StdPeriph_Driver/inc/../../CMSIS/Device/ST/STM32F2xx/Include/../../../../Include/core_cm3.h:936: undefined reference to `dsm2Stream'
allsrc.o: In function `TIM8_CC_IRQHandler':
/home/ja/Soaring/FrSky_OpenTx_Companion9x/OpenTx/2013_11_07_14_15/opentx/src/targets/taranis/pulses_driver.cpp:599: undefined reference to `dsm2Stream'
allsrc.o: In function `setupPulses(unsigned int)':
/home/ja/Soaring/FrSky_OpenTx_Companion9x/OpenTx/2013_11_07_14_15/opentx/src/protocols/pulses_arm.cpp:145: undefined reference to `setupPulsesDSM2(unsigned int)'
collect2: error: ld returned 1 exit status
make: *** [opentx.elf] Error 1
-----------------------------------------------------------------------
I must be doing something stupid !
Advice please

The full make command I used is this
make \
PCB=TARANIS \
PCBREV=REV4 \
EXT=FRSKY \
FAI=NO \
HELI=YES \
TEMPLATES=YES \
NAVIGATION=NO \
AUTOSWITCH=YES \
AUTOSOURCE=YES \
DBLKEYS=YES \
AUDIO=YES \
VOICE=YES \
CORRECT_NEGATIVE_VALUES=YES \
ARITHMETIC_OVERFLOW_CHECK=YES \
HAPTIC=NO \
SP22=NO \
PWM_BACKLIGHT=NO \
SPLASH=YES \
GRAPHICS=YES \
BOLD=YES \
BATTGRAPH=NO \
FONT=STD \
PPM_CENTER_ADJUSTABLE=YES \
PPM_LIMITS_SYMETRICAL=YES \
PPM_UNIT=PERCENT_PREC1 \
FRSKY_HUB=YES \
WS_HOW_HIGH=YES \
GAUGES=YES \
GPS=NO \
RTCLOCK=YES \
BLUETOOTH=NO \
PXX=YES \
DSM2=SERIAL \
HUBSAN=NO \
TX_CADDY=NO \
IRPROTOS=NO \
TRANSLATIONS=EN \
TTS=EN \
UNITS=METRIC \
DEFAULT_MODE=2 \
EEPROM_PROGRESS_BAR=NO \
DEBUG=NO \
FLIGHT_MODES=YES \
CURVES=YES \
GVARS=YES \
3POS=NO \
SDCARD=YES \
XCURVES=YES \
all
heliphil
Posts: 45
Joined: Thu Apr 26, 2012 2:35 pm
Country: -

Re: Taranis and DSM2 mods

Post by heliphil »

:D :D the model match seems to work fine too - bound two rx's last night with different rx numbers / model memories and they only worked on the correct memory
Last edited by heliphil on Fri Nov 08, 2013 11:02 am, edited 1 time in total.
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: Taranis and DSM2 mods

Post by Mechcondrid »

john the only options you need unless you specifically need to remove a function is: PCB=TARANIS DSM2=PPM (or SERIAL depending ond how you made or got your module)
the rest of the options needed for the taranis are in built to the make file for the taranis option
but anyway everything works good here i am only able to test in a 20x35x50 space for test flights atm but everything seems to work on all my models both scratch built and bnf and more importantly they fly correctly (at least after accounting for the switch configuration change coming from a sky9x to a taranis)
EjectSteve
Posts: 53
Joined: Mon Dec 31, 2012 9:47 pm
Country: -

Re: Taranis and DSM2 mods

Post by EjectSteve »

John, I can't give compiling advice, but wanted to confirm that I get pretty much the same errors as you with the command make PCB=TARANIS DSM2=SERIAL, or PCB=TARANIS DSM2=PPM . Using R2860
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Taranis and DSM2 mods

Post by bertrand35 »

DSM2=PPM

Post Reply

Return to “FrSky Taranis radio”