ErskyTx on X20

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
Post Reply
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

ErskyTx on X20

Post by MikeB »

I believe I have enough of erskyTx working on a X20 that it is now worth posting a test version for people to try out.
There is a lot still to be done, but enough is working to be useful.
I'll attach test version to this post.
In the .zip file are two files:
erskytx_x20_l.bin
erskytx_x20_h.bin

The _l version is standalone, and overwrites any firmware already flashed to the X20
The _h version loads high in flash memory and is the "dual boot" version.

To install erskyTx for the first time:
1. Download the Ethos firmware you are using (often named "firmware.bin), rename this to "ethos.bin" and place it in the root of the SD card.
2. Copy the "erskytx_x20_h.bin" file to the root of the SD card.
3. Copy the "erskytx_x20_l.bin" file to the root of the SD card, renaming it to "firmware.bin".
4. Start the radio in bootloader mode without the USB cable connected (or just unplug the USB cable). The firmware.bin file will be flashed to the radio.
5. Start the radio normally, erskyTx will run. Press the ENTER button (long) to obtain the main popup menu, select "Radio Setup", then select "Hardware" with the encoder and press ENTER to run it.
6. In the Hardware menu, select "Create Composite" and press ENTER to run this. A progress bar should appear, wait until this completes. This will create a file "Composite.bin" in the root of the SD card, this contains both Ethos and erskyTx. Choose the option to rename this to "firmware.bin" (press ENTER).
7. Power off the radio, then restart in bootloader mode. The composite file will be flashed to the radio. When this completes, power off the radio.
8. If you power on normally, then Ethos should run as before. Powering on normally will run the same firmware you last used, so Ethos to start with. If you hold the "RTN" button pressed at power on, then erskyTx will be selected to run if you last ran Ethos, and Ethos will be selected to run if you last ran erskyTx.

To update either Ethos or erskyTx, repeat the above, although you do not need to carry out steps 3 and 4 as erskyTx is already available to run to create the composite file.

For erskyTx, you will need to install voice files on the SD card. These are available from http://www.er9x.com/, click on the "SD Card Contents" to download a .zip file containing all the voice files. Unzip this onto the SD card, keeping the sub-directories. You should end with a "voice" directory in the root of the SD card, with 3 sub-directories, "system", "user" and "modelNames".

r2 includes support for external modules using PPM, and also supports the XJT-lite module and the Multiprotocol module.
The internal module is not yet supported, neither is the touch screen as I don't (yet) know what the interface is to it.
The display layouts also need work, but I'm dealing with the main functionality first.

The default colours for the background and text are set in the "Radio Setup|Display" menu.
There is a main screen displayed, and you may create more screens, for each model, in the "Model Setup|TelemetryHiRes" menu. When 1, or more, screens are defined, pressing the "DISP" button cycles through them.
Currently, the MDL button acts as "UP", the centre button acts as "DOWN", the SYS button acts as "LEFT" and the DISP button acts as "RIGHT", but these may change in the future.

Improvements and additions will be made as time permits.

Touch screen functions in r3 and later:
Tap the main screen to get the main, popup, menu, tap outside the popup to cancel it.
Tap the required item in the popup.
Radio and model indices, tap the required item, those with a popup, tap the popup item. Tap near the edge to cancel the index menu.
Statistics menus show two areas at the top right, tap these to move between menus.
All menus, after selecting an item to edit, using the scroll wheel and pressing ENTER, 4 boxes appear on the right to allow changing the selected value by 1 or a larger value. If you keep your finger on a box, it auto-repeats. Tap outside these boxes to exit editing.
r5 adds an on-screen EXIT button.

r8 includes "help" text at the bottom of screens listing possible entries. For this to work, place the "helptel.txt" file in the root of the SD card.

Mike
erskytx_x20_r21.zip
18-Oct-2023 15:39
Add 8th Flight mode.
Add INPUTS, 32 available, find them under Model Setup|Mixer. These may be used instead of the DR/EXPO options.
Some possible acceleration of the encoder.
As the "High" version is now located higher in flash memory (needed due to Ethos getting larger) it is advised to put the "low" on the radio then use this to build the composite version.
(506.72 KiB) Downloaded 66 times
erskytx_x20_r20.zip
02-Sep-2023 11:44
Add LUA scripting support
(516.5 KiB) Downloaded 51 times
erskytx_x20_r19.zip
24-Aug-2023 19:07
Support TD and 900MHz.
Improve some menus.
Fix a small bug where protocol change wasn't saved
(342.37 KiB) Downloaded 58 times
erskytx_x20_r18.zip
27-May-2023 00:01
Fix internal module power enable
Fix configure FCC/EU-LBT in ACCST
(336.65 KiB) Downloaded 75 times
erskytx_x20_r17.zip
18-May-2023 15:36
Possibly fix internal module power enable
More menus touch ready
Add "Theme" feature
(338.13 KiB) Downloaded 88 times
erskytx_x20_r16a.zip
03-May-2023 00:06
Filter some DSM data (0xFFFF = No Data)
Add mAh processing of current
(333.71 KiB) Downloaded 82 times
erskytx_x20_r15.zip
02-May-2023 16:51
Add more DSM telemetry processing.
Display telemetry items in alphabetical order.
More mixers available.
(332.99 KiB) Downloaded 74 times
erskytx_x20_r14.zip
24-Apr-2023 23:29
Fix possible problem when binding using an external module
More menus touch friendly
Various small bugs fixed
Add ability to restore a model backed up from other erskyTx radios, the model data structure is automatically converted.
(331.11 KiB) Downloaded 82 times
erskytx_x20_r13.zip
22-Feb-2023 17:22
Many menus upgraded to be touch friendly
(325.19 KiB) Downloaded 90 times
erskytx_x20_r12.zip
17-Jun-2022 20:53
Audio fixes
Sd card writing fixes
Enable internal module in ACCESS mode, supports 2.4G ACCESS and ACCST(D16)
(308.35 KiB) Downloaded 188 times
erskytx_x20_AudioTest11.zip
14-Jun-2022 12:39
Audio Mute fixed(?) (includes long timeout for SD writes)
File list has some touch buttons.
(291.96 KiB) Downloaded 169 times
erskytx_x20_AudioTest10.zip
12-Jun-2022 22:35
Audio Mute set low (includes long timeout for SD writes)
(290.75 KiB) Downloaded 166 times
erskytx_x20_AudioTest9.zip
11-Jun-2022 22:35
Audio output test (includes long timeout for SD writes)
(290.85 KiB) Downloaded 178 times
erskytx_x20_SDtest8.zip
08-Jun-2022 19:43
8th test version for screenshot locking SD card
(290.13 KiB) Downloaded 169 times
erskytx_x20_SDtest7.zip
07-Jun-2022 17:06
7th test version for screenshot locking SD card
(290.13 KiB) Downloaded 168 times
erskytx_x20_SDtest6.zip
06-Jun-2022 16:49
6th test version for audio missing and screenshot locking SD card
(289.83 KiB) Downloaded 175 times
erskytx_x20_SDtest5.zip
06-Jun-2022 16:49
5th test version for audio missing and screenshot locking SD card
(289.33 KiB) Downloaded 167 times
erskytx_x20_SDtest4.zip
05-Jun-2022 23:48
4th test version for audio missing, may have audio amp always enabled
(289 KiB) Downloaded 178 times
erskytx_x20_SDtest3.zip
05-Jun-2022 22:01
3nd test version for audio missing/No model save
(288.92 KiB) Downloaded 168 times
erskytx_x20_SDtest2.zip
04-Jun-2022 22:39
2nd test version for audio missing
(288.64 KiB) Downloaded 182 times
erskytx_x20_SDtest.zip
02-Jun-2022 23:41
Test version for audio missing
(287.42 KiB) Downloaded 179 times
erskytx_x20_r11.zip
24-May-2022 22:29
Improve composite file creation (again).
(284.95 KiB) Downloaded 213 times
erskytx_x20_r10.zip
23-May-2022 23:49
Improve composite file creation.
Improve R9 module support
(284.85 KiB) Downloaded 213 times
erskytx_x20_r9.zip
05-May-2022 22:40
Allow short press of ENTER to run a script.
Fix trim handling bug with flight modes.
Add fading between flight modes.
(284.39 KiB) Downloaded 187 times
erskytx_x20_r8.zip
09-Apr-2022 17:55
Fix mix sources and mix switch bugs
Add Receiver warning on power off and select model
Add throttle warning
Add model name voice
Add music menu
Add switch warning
Add instant trim
Add telemetry reset(s)
Add help text
Several items added to model|general and model|telemetry menus
Several items added to radio|alamrs and radio|general menus
Custom "welcome" message may be set
More telemetry processing
(283.1 KiB) Downloaded 215 times
erskytx_x20_P4r8.zip
31-Mar-2022 20:40
Add error recovery to composite creation.
(281.93 KiB) Downloaded 209 times
erskytx_x20_P3r8.zip
11-Mar-2022 18:28
Fix bug in support for M-LINK telemetry on Multi
(269.32 KiB) Downloaded 210 times
erskytx_x20_P2r8.zip
10-Mar-2022 22:12
Add support for M-LINK telemetry on Multi
(269.32 KiB) Downloaded 203 times
erskytx_x20_P1r8.zip
03-Mar-2022 16:04
Second est version to improve composite creation.
Includes wired trainer support (CPPM).
(269.02 KiB) Downloaded 196 times
erskytx_x20_P0r8.zip
03-Mar-2022 13:07
Test version to improve composite creation.
Includes wired trainer support (CPPM).
(268.88 KiB) Downloaded 212 times
erskytx_x20_r7.zip
25-Feb-2022 22:46
Add a few icons.
Update script handling (supports ELRSv2.bas)
Add missing menus (even if empty)
Add background music.
Add model image support
(263.84 KiB) Downloaded 230 times
erskytx_x20_r6.zip
23-Jan-2022 22:00
Add ELRS module support.
Improve touch screen use on many menus.
Improve on-screen touch buttons.
(235.99 KiB) Downloaded 235 times
erskytx_x20_r5.zip
14-Jan-2022 20:20
Add copy and delete models.
Fix expo flight modes editing in mixes.
(227.52 KiB) Downloaded 240 times
erskytx_x20_r4.zip
09-Jan-2022 23:22
Add DSM telemetry and Bind handling
(224.74 KiB) Downloaded 217 times
erskytx_x20_h_r3.zip
08-Jan-2022 09:59
FMC clock fixed, revision r3
(223.2 KiB) Downloaded 222 times
erskytx_x20r2.zip
First Available version
(217.94 KiB) Downloaded 241 times
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

KevinFairgrieve
Posts: 3
Joined: Fri Jun 05, 2015 3:17 pm
Country: United Kingdom

Re: ErskyTx on X20

Post by KevinFairgrieve »

Would this work on an X12S that has the ISRM upgrade module running ETHOS?
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 »

No, this is for the X20 only. The X12 doesn't have enough flash memory to allow both Ethos and erskyTx to be combined.

Unfortunately, I only have a prototype X12, so I can't even add the ISRM module to put erskyTx on the X12 instead of Ethos.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
KevinFairgrieve
Posts: 3
Joined: Fri Jun 05, 2015 3:17 pm
Country: United Kingdom

Re: ErskyTx on X20

Post by KevinFairgrieve »

Thanks for the update.
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: ErskyTx on X20

Post by kalle123 »

Hello Mike, and what is with ErskyTX on the X10 Express?

regards KH

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 »

Go to the erskyTx test versions thread, download the latest and extract "x10E_rom.bin". Just flash this to the X10 Express.

I need to do an actual release so this is on www.er9x.com.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
tonnie78
Posts: 123
Joined: Mon Jan 12, 2015 9:33 am
Country: -

Re: ErskyTx on X20

Post by tonnie78 »

Would this mean it's also doable to get OpenTx on an X20?
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: ErskyTx on X20

Post by kalle123 »

MikeB wrote: Sat Dec 25, 2021 10:30 am I need to do an actual release so this is on www.er9x.com.
Was looking there and only found a x12d_rom.bin.

KH
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 »

By that I meant I need to actually do a release so that the x10 express firmware is there.
It is in the test versions thread.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
hamo
Posts: 3
Joined: Mon Dec 27, 2021 8:58 am
Country: Germany
Location: Schönberg

Re: ErskyTx on X20

Post by hamo »

Hello
the programme does not run on my X20S, will there be a version for X20S at some point?
Thanks
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 be more specific when you say it doesn't run on the X20S. Does anything display at all?
I only have a X20, so can't test on a X20S myself.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
hamo
Posts: 3
Joined: Mon Dec 27, 2021 8:58 am
Country: Germany
Location: Schönberg

Re: ErskyTx on X20

Post by hamo »

Hello,
I have renamed my ETHOS "firmware.bin" in the root directory to "ethos.bin" according to your instructions. I copied the file "erskytx_x20_h.bin" to the root directory. Copied the file "erskytx_x20_l.bin" into the root directory and renamed it "firmware.bin".
Start the transmitter in bootloader mode.
The "firmware.bin" runs through normally. Then switch off the transmitter and switch it on again normally. The display shows only Bootloader.
The transmitter can be switched off again with the power button.
Thank you
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'm looking to see if there is a hardware difference on the X20S that is causing this, but I'm working from disassembled Ethos code to find out, so may take a while.
Does the "Bootloader" text appear immediately, or is there a delay?

I could build a special version that runs with delays between various startup functions.
This could indicate the flashed firmware is running, and the length of any delay before "Bootloader" appears would indicate how far through startup it got.

Would you be able to test such a build?

The other possibility is there is something in the bootloader that is checking the flashed firmware before allowing it to run.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
hamo
Posts: 3
Joined: Mon Dec 27, 2021 8:58 am
Country: Germany
Location: Schönberg

Re: ErskyTx on X20

Post by hamo »

The "Bootloader" text appears immediately after pressing the power button.
Sorry, I don't want to do the test.
ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 »

Hi Mike,
i'm going to install it on my X20, is the dual boot flash is a no return modification or it will be erased by installing firmware ethos bin file directly ?

Thanks
Régis
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 »

If you subsequently flash Ethos directly, the dual boot is removed. This is NOT a no return modification.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 »

hi,
i install it as your explain, but i only have a black screen with a blue start button if i press enter (right rotary center button) i just go back from bootloader to black screen.
tandem x20
ethos 1.017 EU
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 »

OK. I believe my X20 is a pre-production one, so there may be something different.
At power on, erskyTx should display a "Starting screen" while the power button is held pressed for about 2 seconds, then go to the main erskyTx screen, so after flashing, power off, then power on holding the power button for 3 seconds. If erskyTx does start, there may be a "click" from the speaker as it starts. If it has started, but there is nothing on the display, you will need to hold the power button in for 2 seconds to get it to turn off.
Also, erksyTx, should create a directory on the SD card called "RADIO", and put three files in it.
Please have a look on the SD card to see if this exists.

Would you be prepared to test a special test version to try to find out why it isn't working?

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 »

i have no directory called "RADIO" in the Root in fact when the firmware is installed the radio stay in bootloader when i press the start button it try to start i can see a flashing loop in the start button (it's really hard to see) but nothing appened if i want to stop the radio i have to push the enter button to get bootloader mode and after i can stop the radio by a long press
ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 »

yes send me a special version to try no problemo
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 »

That means it starts to run, then gets a fault that causes a reboot (error or watchdog), goes back to the bootloader and starts again. I'll do a test version that (hopefully) lights the LEDs on the six buttons in turn (with a delay between them) as it starts up. How many LEDs light up should tell me where the fault is.

I'll try to post it tomorrow.

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 posted a special test version on the first post. This turns the LEDs on the 6-position buttons on in turn, with a delay between them as things are initialised.
Starts with the top left, then middle left, then bottom left, then bottom right, then middle right, then top right, then turns the top left one off.
The delay is around a second, so it should be easy to see how many light up.

Just rename the .bin file to firmware.bin and put it on the root of the SD card.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 »

hi,

all light up ! one after another as you describe in a loop. send you a video
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 »

Thank you.
I've posted a 2nd special test version. This moves the places where I light the LEDs further into the starting code.
Again, it lights the LEDs in turn, then starts turning them off in turn. This time, I'm expecting that not all the LEDs will light up.
It's looking like it may be the setup for the external RAM, that holds the screen image, that may be failing.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 »

This time only one and two (top left and middle left)
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 »

That's what I thought might happen. I've posted a 3rd version where I've changed the code that initialises the external RAM. I found something that suggests I needed a small delay added.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 »

same as before only one and two on the left
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 »

4th version. I've put most of the LED sequence in the external RAM startup. This might make it work as it increases the delays.
As the delays are software loops, and the compiler I'm using might generate "better" code, the delays may be shorter than required.
With this one, the LEDs light in order, then start going out in order.

Mike

Edit: I think I can see the main problem, Ethos initialises the external RAM before changing the processor clock up to full speed, while I'm changing the clock first. This means my software delays are too short (same counts as in Ethos).
If the 4th debug version works, try the full version I've also posted with the external RAM initialised before the clock is changed to full speed.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 »

at first start in the first loop i've got one to four and after one to three.
the rom shows a black screen i have to unplug the battery to go back to bootloader.it seems there is no loop anymore
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 »

To confirm, you power on and the 3 LEDs on the left light up in turn, then the bottom right one, then it restarts and only the 3 on the left light up in turn, then it stops changing.

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

Post Reply

Return to “erskyTx (was ersky9x)”