DIY-Multiprotocol-TX-Module icon indicating copy to clipboard operation
DIY-Multiprotocol-TX-Module copied to clipboard

DSM Programming Spektrum Avian

Open chucky-whiskers opened this issue 2 years ago • 11 comments

Someone recently asked about DSM Forward Programming a Spektrum Avian ESC for "reverse throttle" functions etc... on a TX16S. This is a plausibly worthwhile update if it is not already working on the current version. I pointed this person to this lua script. It is worth looking into.

chucky-whiskers avatar Apr 04 '22 03:04 chucky-whiskers

Not sure what you are requesting... This someone should come here and explain the issue.

pascallanger avatar Jul 07 '22 08:07 pascallanger

I recently stumbled onto this while attempting to add a head tracking pan/tilt system for a friend who insists on the Avian feature of reversing via an additional AUX switch :-/.

An Avian ESC utilized with a Spektrum receiver allows for enhanced ESC configuration via a telemetry related extension from a Spektrum radio.

observations/understanding: A Spektrum radio running "Avian Prog" appears to display a menu that can be navigated via stick commands. The result feels very similar to OSD stick control via MSP DisplayPort telemetry. It is my current belief that the Spektrum RX is generating this interface OR the Spektrum RX must be passing all the RX channels into the ESC pin in order for the AVIAN ESC to process the stick commands and generate the menu to send back over telemetry.

Spektrum Quick Hit Tech Tip - How to setup Thrust Reversing on Avian ESCs and BNF Aircraft https://www.youtube.com/watch?v=_ZHWzBWe1e0

pitts-mo avatar Aug 06 '22 10:08 pitts-mo

This problem is still not solved. I want a lua script capable of doing this programming on a RadioMaster TX16S (or any open-source, multi-protocol radio). Maybe this isn't the right place to suggest this, but I think it is within the realms of possible.

chucky-whiskers avatar Aug 06 '22 15:08 chucky-whiskers

@pascallanger can this issue be re-opened, Should I attempt to enhance my understanding and start a new issue to build a LUA for this OR can you provide a better suggestion? Thank you, -p

pitts-mo avatar Aug 07 '22 22:08 pitts-mo

From what I have seen, the DSM protocol in both OpenTX and EdgeTX for the TX16S do not operate stick telemetry correctly. For instance when using stick inputs to access receiver programming functions the same way you would using a DSM transmitter, the receiver/onboard equipment does not respond. Spektrum stick "command functions" are somehow issuing a different signal than stick "inputs" used for controlling the craft, or the open-source software is sending different types of signals or something. The serial code sent to the receiver may have different priority levels per channel or something. Anyway, the TX16S will not do these setup functions on the Spektrum gear with the current programming. If that means updating the firmware for the 4-in-1 module, that could be a fix. A lua script is another possibility to address the issue. I know the problem and the function of the fixes, but I do not write code much. I'd feel more confident pushing this to someone with more experience.

chucky-whiskers avatar Aug 07 '22 22:08 chucky-whiskers

Actually, it is a telemetry issue that probably requires a lua script either way.

chucky-whiskers avatar Aug 07 '22 22:08 chucky-whiskers

Without the hardware there is little I can do. Can you ship a RX/model?

pascallanger avatar Aug 08 '22 06:08 pascallanger

I cannot at this point in time.

On Mon, Aug 8, 2022, 12:13 AM pascallanger @.***> wrote:

Without the hardware there is little I can do. Can you ship a RX/model?

— Reply to this email directly, view it on GitHub https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/issues/676#issuecomment-1207709216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXK7M34MYULZT6PTHEYLTODVYCQO5ANCNFSM5SOFNQZA . You are receiving this because you authored the thread.Message ID: @.*** com>

chucky-whiskers avatar Aug 08 '22 13:08 chucky-whiskers

I am checking with my friend and will try to talk him into sending gear. -p

The cheapest Avian ESC and smart compatible receiver appears to be: Avian 15 amp ESC: https://www.spektrumrc.com/Products/Default.aspx?ProdID=SPMXAE1015 AR410: https://spektrumrc.com/Products/Default.aspx?ProdId=SPMAR410#prod_section_support

pitts-mo avatar Aug 09 '22 01:08 pitts-mo

Ship or a donation to purchase the hardware. I think I have a receiver that should work but I'm in vacation and cannot check. I'll check how much such esc cost in France.

pascallanger avatar Aug 09 '22 07:08 pascallanger

Hello @pascallanger, Have you returned from your vacation? Do have time to evaluate the hardware you would need to attempt a build of lua replacement for Spektrum's "Avian Prog"?

The friend I am inquiring for has indicated he is willing to ship/pay for an ESC.

Although, I am just now realizing the Spektrum smart RX and a Spektrum TX may also be needed in order to see what their "Avian Prog" does to work through RX and configure the Avian ESC.

-p

pitts-mo avatar Sep 04 '22 00:09 pitts-mo

Im starting to understand the internals of how the Telemetry based screens works (TextGen). Have been able to do some experimentations with the Blade Heli AR636 to help on the configuration.

How TextGen works: You enter the menu using a comvination of stick and switch movements. Each menu line is respresented by a telemetry sensor. So if you have a menu with 5 lines, it will come from 5 sensors. Another telemetry sensor has the # of the active menu option so that it can be highlighted. The menu line sensor holds the the current value/option (a message ID/number). That ID/Number needs to be translated to English.

Once i get my hands on an Avian Receiver, i think i could get the code done fairly quickly.

Frankie

frankiearzu avatar Jan 20 '23 06:01 frankiearzu

@pascallanger hope you found the hardware needed to test it. I would love to see ESC reversal capabilities.

I also donated some funds to support your work :) TX: 0AL26036PX561671V

BuddhaSource avatar Apr 06 '23 04:04 BuddhaSource

@BuddhaSource The AVIAN ESCs uses TextGen to configure via the TX. The problem is that the current EdgeTx firmware was not processing this TextGen messages correctly, but i did the fix. it will be available in Edge 2.9.0.
For the ones who cannot wait, i created some firmware build who has the official EdgeTX 2.8.1 + some Spektrum telemetry fixes (TextGen, GPS sensor, ESC data) here: https://github.com/frankiearzu/DSMTools Has firmware for RadioMaster TX16, Zorro.
After the firmware is installed. use the new Telemetry scripts to access TextGen. (DSM_Smart_Tel.lua) What Radio are you using???

frankiearzu avatar Apr 06 '23 06:04 frankiearzu

Here is a video configuring the AVIAN ESC from a RadioMaster TX16 https://www.youtube.com/watch?v=yrAqV4b9Li4

frankiearzu avatar Apr 06 '23 06:04 frankiearzu

Excellent, thank you @frankiearzu I have both Tx16s and Zorro both. I will try this on TX16.

BuddhaSource avatar Apr 06 '23 08:04 BuddhaSource

UPDATE: TextGen Support included in EdgeTX 2.8.3. No need for custom firmware any more.

frankiearzu avatar May 02 '23 04:05 frankiearzu

I confirm it worked. Thank you for supporting it.

BuddhaSource avatar Jun 02 '23 07:06 BuddhaSource

@pascallanger this can be closed. the TextGen is part of the DSM_Smart_RX.lua

frankiearzu avatar Oct 30 '23 17:10 frankiearzu