er9x and multi-protocol telemetry mod

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
efyzz
Posts: 8
Joined: Sun Nov 28, 2021 10:00 pm
Country: -

Re: er9x and multi-protocol telemetry mod

Post by efyzz »

I read again what you've discussed with Timeless and set "Rate 50" to "T-Rate 50" in the protocol menu. Now I have RSSI and TSSI shown :)

Also the debug values are now 00AA and the second is upcounting.

I think it should have been working all the time with the correct settings :roll:

I'm not familar with telemetry yet, so I don't know what values I have to expect. But I think with the Telemetry menu I can configure the representation of all data ...? I have to read about this.

For me it seems to work. Or what else do I need?

efyzz
Posts: 8
Joined: Sun Nov 28, 2021 10:00 pm
Country: -

Re: er9x and multi-protocol telemetry mod

Post by efyzz »

Ok, now I see what's missing. Here is information about the analog channels:
by defaut using FrSky Hub protocol (for example er9x): A1=RX voltage (set the ratio to 12.7 and adjust with offset), A2=battery voltage FS-CVT01 (set the ratio to 12.7 and adjust with offset) and RX&TX RSSI
So I should see some value for RX battery voltage at A1. But it is always 0.0V.

Any idea how to get this work?
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

There is a telemetry value "RxV", this is the receiver voltage and should be set if the telemetry is sending the value.
A1 is specific to FrSky, and is a copy of RxV (if RxV is being sent), unless there is a real A1 value sent.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
efyzz
Posts: 8
Joined: Sun Nov 28, 2021 10:00 pm
Country: -

Re: er9x and multi-protocol telemetry mod

Post by efyzz »

Hi Mike,

Thanks again, it works! :D

I've ordered a FlySky FS-CVT01 voltage sensor. I'm curious whether that will work ;)
efyzz
Posts: 8
Joined: Sun Nov 28, 2021 10:00 pm
Country: -

Re: er9x and multi-protocol telemetry mod

Post by efyzz »

Hi,
Sorry for late reply. I just tried out the FS-CVT01 voltage sensor. Now I can see LiPo voltage with parameter FasV. It works! :)
Thanks again for your support!

adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hi,
I'm reading a lot about how to do the frsky telemetry mod and I have some questions.
My case,
-Turnigy 9x 64 firmware er9x-frsky
-MultiModule IRangeX firmware mm-stm-serial-aetr-v1.3.3.33
-Receiver Frsky X8R
I have doubts between DJT, XJT and multiprotocol models, I'm not sure which mod I have to make. Do I have to add the MAX or just the cables to the processor pins? A little light please, 'cause I'm already in a mess.
I currently have my Turnigy running in multiprotocol mode with the ER9xFrsky without telemetry, which is what I'm missing. I tried bindings with Flysky, Frsky and Spectrum
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

For the DJT and XJT modules you need the inverter on the telemetry signal (MAX device or transistor). This will also work with the MultiModule.
If you are only using the MultiModule, then you may wire directly to the processor pins, then in the "Radio SETUP|General" menu, adjust the "Invert Telemetry" setting to get telemetry working.
If you wire directly to the processor pins, then if you use the DJT module it may damage the processor.

I would recommend fitting the inverter as part of the mod.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hi Mike,
From what I understand, better to do the mod with the max with any of the three modules to make sure. In my case, I don't have a chance in ER9X to reverse the polarity because it doesn't appear in the menu. I understand that's a firmware option for 9xtreme.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

The "Invert Telemetry" shows up on my M64 9x in the "Radio SETUP|General" menu.
What version of er9x are you using (Date, Time and SVN), I have the most recent test version (er9xProv822z1) running.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hi Mike,

My version

Date 30.11.2016
Time 13:39
SVN er9x-r820
MOD frsky nt
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Ok, Download the er9xProv822z1.zip file and install the firmware er9x-frsky.hex
Now my version is

DATE: 05.08.2021
TIME: 21:36:29
SVN: er9x-pzr822
MOD: FRSKY NT

After this, I see the option of inverting telemetry that you tell me about.

I'm going to make the mod only of the two pins and comment if it works like this.
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hi,
I've already made the mod only of the two pins with the 200 Ohms resistors and I'm still bidding the rx but without telemetry.

The option inverter telemetry is active. I've been trying options in the telemetry menu with no results.

Will it then be necessary to perform the max323 mod?
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

Testing with my 9x (with 2561 processor) that does have the MAX inverter, I need the "Invert Telemetry" ticked, so if you don't have the inverter you need the box not ticked.
I also have some problems. If I use my DIY module (built using a PCB to the circuit on the MPM Github site) all works correctly.
Also my original AVR module works correctly.
If I use either of my Jumper modules, the telemetry doesn't work. I don't have an IrangeX module.

Putting a 'scope on the telemetry signal, the Jumper modules only output 1.5V, while the DIY module outputs 3V.
Possibly, a pullup resistor to 5V on the telemetry signal (bottom pin of the 5-way connector in the module bay) would enable the Jumper modules to work.

Mike

Edit: If the signal is good enough and the polarity is correct then on the "Protocol" menu, the MPM firmware revision will appear beside the "Range" text.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hi Mike,

I see telemetry at last, I achieved this with an R470 at the bottom pin and disabling the invert telemetry flag.

Now, I don't have experience with telemetry, is RX=87 TX=2 data normal?
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

In the protocol menu Range (1.3.3.33) Lqi 97
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hello again,

Once I saw the telemetry being activated on the Turnigy 9X I got excited and started doing more tests

I tested afhds2a which had two sensors lying around, FS-CFT01(voltage) and FS-CAT01(altitude).

Following the tests you have done above I managed to see the telemetry changing in telemetry option -127, but it stopped working after a while, In the end testing I left it option 71 and it seems more stable.

As for the sensors, the voltage one works perfectly + - 0.3v depending on the polymeter witch protocol FasV. For the altitude sensor I have not been able to get any data, I have tried several protocols, Alt, Galt, etc and nothing.

If anyone knows if this sensor works, let me know how, I'm already curious.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

The firmware for the M64 only has 18 bytes of flash left, so I have been unable to add any more telemetry support. This means that the newer AFHDS2A sensors are not supported, only the older AFHDS2 sensors.

Partly because the M64 is full, and partly that I don't have enough time to support so many different radios, I stopped new development on er9x in March 2021.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hi Mike,

I have a Turnigy 128, On this TX with more memory are these protocols?
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

OK, I assumed you had a M64 as you are flashing the M64 version of er9x.
For the '128 processor, use er9x-128.hex. There as several versions for the M64 to allow for different configurations (e.g. different voice addons) but these are selectable on the '128 version.

I've just posted a test version for the '128 that may handle the Alt telemetry in AFHDS2A, I copied the code from erskyTx.

The '128 also has more EEPROM than the '64, so you get more storage for models. This should get used automatically, but just to be sure do a backup of the EEPROM before you flash the '128 version.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Thanks Mike,

I'll give it a try, I have several Turnigy 9X and a 128 for testing, I actually use a 64 to fly. I have to wire the 128. When I try it, I comment on results.
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hi Mike,

I've already done the mod on the turnigy 128. I downloaded the firmware to the TX and performed the welds for telemetry just like on the turnigy 64. But there's no way for you to receive telemetry. I checked continuity with the polymeter in case there were any poorly made welds. I tried the TX with the inverted telemetry option and in the telemetry menu I tried the different protocols Frsky, ArduP, FrHub and nothing.
In Range No data appears.

Turnigy 9x 128
Firmware er9x-128.hex
Version: V1 DATE: 05.08.2021 SVN: er9x-pzr822 MOD: FRSKY 128
MultiModule IRangeX firmware mm-stm-serial-aetr-v1.3.3.33
RXs: Frsky X8R, Flysky FS-IA6B
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

The '128 version needs to be "told" you have done the telemetry mod.
Power on holding the left horizontal trim to the left. This enables the hardware menu (you should see a message showing this).
Then go to the Radio Setup menu and select the "Hardware menu". Go down and tick "FrSky Mod Done".

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hi Mike,

Wonderful, it already works the same as in '64. With Flysky I had to change the option to 71 as well.
Although you can tell that the er9x goes smoother on the 128.
The Altitude sensor still doesn't work, I tried Alt and Galt, do you know if this works differently?
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

I've posted a new test version for the '128, only a small change to detecting certain telemetry options.

Before you flash this, what protocol and sub-protocol are you using (Flysky or Flsky 2A)?

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hi Mike,

Flsyky 2A PWM-IBUS with receiver FS-IA6B and FS-IA10B.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

I'm not very familiar with AFHDS2A telemetry and don't have any hardware, but from information earlier in this thread and elsewhere I've come up with the following.
Check the option value. As you change it, the label should change from "Option" to "Rate" or "T-Rate".
I believe the Rate/T-Rate value changes the servo pulse output rate, so with "Rate" as the label a numeric value of 50 indicates 50Hz (20mS period).
Having the label as "T-Rate" makes the MPM send AFHDS2A encoded telemetry data instead of FrSky Hub encoded telemetry data.
So please try with the Option showing "T-Rate 50".

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

I've tried it but with the current firmware and the altimeter still doesn't work.

I've tried upgrading to the test firmware er9x-128pz3r822.hex and I can't, I have the following error in eepe

"avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update."

I can't read and write

I hope I didn't break anything...
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

Have you still got the TX module plugged in? This may upset the flash process as it uses the same serial port as the telemetry signals.

If you are able to flash firmware again, I'll see if I can add some debug to see what is happening.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
adiezarr
Posts: 54
Joined: Sun May 22, 2022 10:20 am
Country: -

Re: er9x and multi-protocol telemetry mod

Post by adiezarr »

Hi Mike,

Remove the TX module and the same error.

I tried removing the driver on windows and reinstalling it


avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


avrdude.exe done. Thank you.


=================================================================================
AVRDUDE terminado - codigo de retorno de error 1
=================================================================================
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x and multi-protocol telemetry mod

Post by MikeB »

From a previous post, it seems you flashed the firmware before you did the telemetry mod.
When you did the mod, did you wire the two switch connections (Ail and Thr) to the other processor pins?

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

Post Reply

Return to “er9x”