ErskyTx on X20

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
JustPlaneChris
Posts: 8
Joined: Wed Feb 23, 2022 8:31 pm
Country: United States
Location: Temple, TX

Re: ErskyTx on X20

Post by JustPlaneChris »

Very odd. Yes, it asks about renaming. I've tried it both ways (pressing ENTER) and also ESC and rename it manually.
I have tried deleting it, no change in behavior.

It did this when I originally did the dual boot, but after flashing back to Ethos and trying it again then it created a non-zero byte composite.bin file. Maybe I need to flash it back to Ethos and start fresh?

Chris

JustPlaneChris
Posts: 8
Joined: Wed Feb 23, 2022 8:31 pm
Country: United States
Location: Temple, TX

Re: ErskyTx on X20

Post by JustPlaneChris »

Yep, that did it! I flashed back to Ethos and started over at step 1, and it worked. Now I've got r7. :)

Chris
JustPlaneChris
Posts: 8
Joined: Wed Feb 23, 2022 8:31 pm
Country: United States
Location: Temple, TX

Re: ErskyTx on X20

Post by JustPlaneChris »

Of course, now I've got to go back to the documentation and figure out where to put the LUA script so the radio can see it, as well as the audio files so I can try and set up a voice alert for ELRS link quality! It's always something new to stress my old man's brain with, isn't it? ;)

Thanks again for making this happen, I really didn't want to buy another radio just for ELRS.

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

Re: ErskyTx on X20

Post by MikeB »

I'll test creating the composite from a dual booted radio. Most of my testing is done just flashing erskyTx directly.

BASIC scripts go in a "scripts" directory, I haven't got LUA on the X20 yet.

The SD contents may be downloaded from www.er9x.com.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
JustPlaneChris
Posts: 8
Joined: Wed Feb 23, 2022 8:31 pm
Country: United States
Location: Temple, TX

Re: ErskyTx on X20

Post by JustPlaneChris »

Sweet. Thanks again!

Chris

User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

I updated my X20S from R6 and 1.1.0 to R7 and 1.1.1.
I created the composite from a dual boot radio and all works fine.
Ramchand
Posts: 6
Joined: Wed Mar 02, 2022 3:24 pm
Country: -

Re: ErskyTx on X20

Post by Ramchand »

Dual boot isnt working for me. I have an x20s running latest version of ethos and r7 from erskytx and it only creates me a composite file with 0 size . I have even tried flashing back to ethos and tried step1 but still I have the same composite file with 0 size. Can some one explain what they did to make the dual boot work? and I was not able to add mixers properly( was able to add only one switch ), I have added a mixer for arming on to a 2 pos switch and in betaflight I see that whenever i turn on the switch the signal is constantly fluctuating between on and off.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

What SD card are you using (speed and capacity)?
I'm using a 4Gb card rated at a speed of "10".
It may be I'm trying to write to the card too fast for some cards.

What are the settings in your arming mix you have added? I can test your settings and see if I have the same problem.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

I’ve a 32GB Sandisk Extreme (class 10) in my X20S.
All works fine.
Ramchand
Posts: 6
Joined: Wed Mar 02, 2022 3:24 pm
Country: -

Re: ErskyTx on X20

Post by Ramchand »

@Mike I'm using Sandisk Ultra 32GB class 10. for the mix I used a 2 position switch for arming ( I swapped long 2 postion switch with the long momentary switch) I put s1 for source and added the switch thats the only thing I did and in betaflight I see that it is toggling between on and off constantly, this is the only switch that is activated tried addding more mixers but I dont see any signals coming in betaflight. And I couldn't get my x20s to dual boot no matter how many times I try.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

I've just posted a test version that may improve the composite.bin creation. It also displays the number of bytes written to the file and checks this is the correct value on completion.
I had my X20 stop writing about half way through the operation today, the first time it didn't work for me!

For the mixing, I created a mix on channel 5 with source S1 and the switch SH. On the mixer screen that lists all the mixes, I highlighted the CH5 source (so that mix was selected) which makes the mix output show on the top line. With SH off, the output is 1500 (bar in the centre), with SH on, S1 controls the output.

Which channel are you using, and what Tx module and receiver are you using?

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Ramchand
Posts: 6
Joined: Wed Mar 02, 2022 3:24 pm
Country: -

Re: ErskyTx on X20

Post by Ramchand »

Hi Mike, Thank you for doing all this. Really appreciate your work. I have tried the latest version you posted. for the composite file it is writing for some time and stops from the middle and I get composite file not fully written message. Just checking, are you using the default memory card that came with the x20? I'm using happy model slim pro tx module and jhemcu 2.4ghz rx for elrs.
Ramchand
Posts: 6
Joined: Wed Mar 02, 2022 3:24 pm
Country: -

Re: ErskyTx on X20

Post by Ramchand »

I was able to make it work with the stock sd card that came with my x20s. I was able to fix the mixes as well. Now I want to know how to assign a 3 position switch for flight modes, which source should I be using?
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

Good! I've just posted an new test version. This writes to the SD card slower. If it fails, it should then display the error message, together with two values. The one on the left (letters and numbers) should tell me where things went wrong, the number on the write is the number of bytes written.

It may be the 32Gb card takes more time writing as the FAT is larger to cope with the larger capacity. My card is 4Gb.

For the flight modes (Model Setup|Fl.Modes menu), a flight mode is active if both switches assigned are ON (--- is ignored if you only want a single switch).
Flight mode 0 is the default if no other flight mode is active.
If you want 3 flight modes controlled by switch SA, then set FM1 to be selected by SA- and FM2 selected by SAv, when SA^ is on you will have FM0 as no other mode is active.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

Hello, I’ve tested my X20S with ersky R7 and ethos 1.1.1 and several receivers : jumper r8 , multiplex rx-5, rx-6, rx-9.
The tx module is IrangeX IRX4 lite.

With jumper r8 all works fine, even telemetry : RSSI
With multiplex receivers there is a little issue, I tested moving a servo from extreme to extreme and I observed a little delay in servo movement, 0,1 sec. aprox, every 6 sec. (same servo that works fine with jumper r8)
Rx-5 and Rx-6 doesn’t have telemetry, but Rx-9 have and I’m not able to display in transmitter.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

I don't have any multiplex receivers so I cannot test that protocol.
Is the telemetry data in "M-Link" format? If so, I hadn't seen that the Multiprotocol firmware had been updated to send this, so I don't, currently, handle it.

Are you able to test the multi-module with the multiplex receivers in another radio to confirm the servo delay is specific to erskyTx on the X20?

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

I tested this receiver with a jumper t12 pro transmitter with opentx 2.3.14 and multi protocol 1.3.3.7 where I correctly received telemetry.
IrangeX IRX4 lite is 1.3.2.86 version. In mpm 1.3.2.58 was added telemetry forwarding to opentx in Mlink and in Opentx 2.3.12 was added telemetry support for Mlink.
I don’t have another transmitter where to test servo delay with IrangeX IRX4 lite, I’ll try to find one and send you answer.

Thanks a lot Mike for your support.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

I'll see if I can work out the data format from the openTx code (which I have now found).

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

I've just posted a test version (on the first post) that has support for M-Link telemetry. I can't test it myself. It is possible that some items may have incorrect scaling.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

I’ve loaded p2r8 and tested with Rx-9, but I don’t receive telemetry, RSSI remains 0.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

Please could you create a raw log file of the telemetry data?
Set up a logging switch (in menu Telemetry|Logging), then go to the DEBUG menu (under STATISTICS) and press ENTER LONG to toggle Raw logging to HEX.
Now, with everything running, turn the logging on for (say) 10 seconds, then turn it off.
Find the log file (should be in a LOGS directory on the SD card), zip it up and post it.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

Hi, here I send raw log file
MLINK_0-2022-03-11.zip
(393 Bytes) Downloaded 138 times
MLINK_0-2022-03-11.zip
(393 Bytes) Downloaded 138 times
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

P3r8 now posted. I found a bug where I had the telemetry packet incorrectly aligned.
I can see M-Link telemetry in the raw data.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

Thank you Mike.
I’ve tested p3r8, now I display RSSI and RxV.
RxV seems to be half of the actual receiver voltage.
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

Hi Mike, I’ve found the servo delay cause.
It’s the failsafe, I had failsafe in custom mode. In mlink it sends failsafe to receiver every 6-7 seconds, receiver blinks led (acknowledge way on multiplex receivers) and servo has a little delay.
I’ve changed to receiver failsafe mode and servo delay disappears.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

The receiver voltage is probably being scaled by the setting (for RxV) in the telemetry menu.
For now, please try changing the value there from 13.2 to 25.5.
I need to disable the scaling for M-Link telemetry.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

Hello, I’ve changed RxV value in telemetry menu to 25.5 and now the displayed value for RxV is correct.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

Good! The next version will fix the need to make that setting.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
pliggett
Posts: 4
Joined: Thu Mar 31, 2022 12:51 am
Country: -

Re: ErskyTx on X20

Post by pliggett »

I keep getting the error 'composite.bin' not fully written. once at 270336 and the 2nd at 285771
I have tried different versions of Ethos firmware and different SD cards with the same result.

My radio is currently suffering from the low RTC battery issue caused by the old firmware.

Can a low RTC battery cause this failure? If not, any clue as to what is happening?
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ErskyTx on X20

Post by MikeB »

I'll see if I can improve this. Currently I report an error and stop, I'll look into recovering from the error and continuing.

The RTC battery should not affect this.

Mike

Edit: Is there a second value at the beginning of the line with the bytes written when the error is reported? If so, this value should tell me why the operation failed.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

Post Reply

Return to “erskyTx (was ersky9x)”