ERSKYTx (was ersky9x) Questions

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

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

I've posted a new test version for all radios.
There are now 8 flight modes available (was 7).
New feature: INPUTS. These are like the inputs of openTx/edgeTx. You still have the DR/EXPO menu, and this still functions and is an easy way to handle triple rates and expo on the sticks. INPUTS provides similar functionality for the sticks, but also provides the same for other sources (e.g. pots/sliders).
INPUTS are accessed from the mixer option. The popup that showed Mixer and Templates now also shows Inputs.
Inputs are not implemented on the original SKY board as there isn't enough flash space.

On radios with an encoder wheel, there is some acceleration when changing values, so moving the encoder fast results in larger changes.

Because each model memory is now larger, eepskye has changed to handle the larger size, as well as handling the INPUTS functionality. A new eepskye.exe is included.

Before using this test version, please backup your existing models and make sure you have a copy of the existing firmware in case you need to replace that. Also, please keep a copy of the existing eepskye.exe before you overwrite it with the one here.

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

sammieB
Posts: 6
Joined: Tue Feb 06, 2024 4:24 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by sammieB »

Hi all!

I hope this is the right location to ask my question.

I have a 9XR PRO and flashed r225, and I have issues running scripts. I tried to run ELRSv2.bas from the main "Run Script" menu, and it seems it resets as I can hear the welcome voice again. (the file was put in /SCRIPTS)

Then I tried inav2.bas (that I put in /SCRIPTS/TELEMETRY): from Telemetry->Custom->Display2->Script, as soon as I enter the name and want to close the menu, then it resets, I hear the welcome voice and I'm back to the default menu.

Is there something I'm doing wrong?

Thanks!

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

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

I've released r226 that should fix the problem.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
sammieB
Posts: 6
Joined: Tue Feb 06, 2024 4:24 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by sammieB »

Hi Mike, thank you very much for your prompt answer.

I tried r226 and observed the following:

-for some reason now there's no binding anymore between the RX and the TX! (the light on the RX keeps blinking slowly until it eventually ends in WiFi mode)
-when I run the ELRSv2.bas script, the display shows "Waiting for other devices..." or something like that, then nothing else happens

Is there something I need to try or do to be able to use that r226?

Thank you again!
User avatar
MikeB
9x Developer
Posts: 18077
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

Do you know what version you had before you flashed r225?
Did r225 bind OK?

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

sammieB
Posts: 6
Joined: Tue Feb 06, 2024 4:24 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by sammieB »

Yes, r225 was binding OK, and when I rolled back to r225 it still binds ok.

And indeed I had r225 before I flashed r226.

Edit: reading your question again, before r225 I most likely had a r220 (and no ELRS module by then, I just changed the external module)
User avatar
MikeB
9x Developer
Posts: 18077
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

This is very odd. I've compared the two, ersky9xr_rom.bin files (r225 and r226) and the only differences are in the version text and two places containing the fix for the script not running.
So the executable code for everything else, like binding, is exactly the same, the files are exactly the same length and just 13 bytes are different.
I've also downloaded the release file and checked that only has the changes I describe.
Perhaps just download ersky9xr_rom.bin again and re-flash it.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
sammieB
Posts: 6
Joined: Tue Feb 06, 2024 4:24 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by sammieB »

It's working! I downloaded manually the file from er9x.com instead of flashing the file that got suggested by eepskye, and it's now working. Don't know finally which file got flashed prior to this....

Well, anyway, happy ending. Thank you so much!

Edit: I opened the previous bin downloaded by eepskye (r425) and it also indicates r226 in the binary itself (I was looking for the string "VERS:"). That's confusing ... maybe something fishy in eepskye?
wiebren
Posts: 7
Joined: Sat Nov 28, 2015 6:32 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by wiebren »

For me not a question but a summary for people who want ELRS3.x on their turnigy 9xr pro;

1. First go to https://www.er9x.com/ and download the latest firmware (my case this was rev228, but site states rev229)
2. Install per normal procedure through eepsky (also found on https://www.er9x.com/)
3. Now you must install a script on the SD card of the 9xr pro;
3.1. Create a folder called “scripts” on the SD card
3.2. 2 options are possible;
3.2.1. Download the ELRSv2.zip of https://www.openrcforums.com/forum/view ... hp?t=10668
3.2.2. Open file ELRSv2.BAS with notebook and open a debug site (eg. https://www.onlinegdb.com/)
3.2.3. Place content of file in site (or notebook if you want)
3.2.4. Modify rule 11 of the script to; “array byte parameter buffer [240]”
3.2.5. Place after rule 367 a new rule on 377; “if ParameterBufferIndex >238 then Parameterbufferindex = 238”
3.2.6. Copy content to the ELRSV2.BAS in notebook and hit save.
3.2.7. Copy this file to the new created folder "scripts" on the SD card

3.3. Or download the
ELRSv2_modified rules.zip
(3.56 KiB) Downloaded 19 times
and place the .BAS file on the SD in the folder "scripts"

4. Place SD in transmitter
5. Place the ELRS module (my case the HappyModel ES24TX micro) in the transmitter
6. Turn on the transmitter, and longpress “menu” go to “protocol” and set external to “Xfire”.
7. Go back to home, longpress “menu” and select “model setup”
8. Go to scripts and longpress “menu” to load the ELRSv2.BAS, press 2 times menu and you should be in the ELRS module.
9. For the binding go to the bind option in the script and select activate bind, in betaflight with the correct protocol (onboard spi + ELRS) also select bind to receiver. Or as per procedure you like. A power on-off cycle also helps (no expert in the binding procedure :))
10. For the telemetry to work;

10.1. Model setup> telemetry> sensors and give the custom sensors a matching name for the below data;
Cus1: RX_RSSI1
Cus2: RX_RSSI2
Cus3: RX_QUALITY
Cus4: RX_SNR
Cus5: RX_ANTENNA
Cus6: RF_MODE

10.2 place the custom sensors in the display

Ps. this is all information I found on openrcforum (all input from @mikeB :D ),
Google words (HappyModel ES24TX micro, 9Xr-pro, ELRS3.0, elrs, Expresslrs)

*7jan changelog; changed .bat to .bas reference
Last edited by wiebren on Tue Jan 07, 2025 10:26 am, edited 1 time in total.
IanF9X
Posts: 33
Joined: Mon Dec 15, 2014 9:57 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by IanF9X »

wiebren wrote: Wed Dec 11, 2024 1:29 pm For me not a question but a summary for people who want ELRS3.x on their turnigy 9xr pro;

1. First go to https://www.er9x.com/ and download the latest firmware (my case this was rev228, but site states rev229)
2. Install per normal procedure through eepsky (also found on https://www.er9x.com/)
3. Now you must install a script on the SD card of the 9xr pro;
3.1. Create a folder called “scripts” on the SD card
3.2. 2 options are possible;
3.2.1. Download the ELRSv2.zip of https://www.openrcforums.com/forum/view ... hp?t=10668
3.2.2. Open file ELRSv2.bat with notebook and open a debug site (eg. https://www.onlinegdb.com/)
3.2.3. Place content of file in site (or notebook if you want)
3.2.4. Modify rule 11 of the script to; “array byte parameter buffer [240]”
3.2.5. Place after rule 367 a new rule on 377; “if ParameterBufferIndex >238 then Parameterbufferindex = 238”
3.2.6. Copy content to the ELRSV2.bat in notebook and hit save.
3.2.7. Copy this file to the new created folder "scripts" on the SD card

3.3. Or download the ELRSv2_modified rules.zip and place the .BAT file on the SD in the folder "scripts"

4. Place SD in transmitter
5. Place the ELRS module (my case the HappyModel ES24TX micro) in the transmitter
6. Turn on the transmitter, and longpress “menu” go to “protocol” and set external to “Xfire”.
7. Go back to home, longpress “menu” and select “model setup”
8. Go to scripts and longpress “menu” to load the ELRSv2.bat, press 2 times menu and you should be in the ELRS module.
9. For the binding go to the bind option in the script and select activate bind, in betaflight with the correct protocol (onboard spi + ELRS) also select bind to receiver. Or as per procedure you like. A power on-off cycle also helps (no expert in the binding procedure :))
10. For the telemetry to work;

10.1. Model setup> telemetry> sensors and give the custom sensors a matching name for the below data;
Cus1: RX_RSSI1
Cus2: RX_RSSI2
Cus3: RX_QUALITY
Cus4: RX_SNR
Cus5: RX_ANTENNA
Cus6: RF_MODE

10.2 place the custom sensors in the display

Ps. this is all information I found on openrcforum (all input from @mikeB :D ),
Google words (HappyModel ES24TX micro, 9Xr-pro, ELRS3.0, elrs, Expresslrs)
Hi I have ES24TX Pro module in 9xtreme radio with r227 erskytx. Trying to update the module. Where do i dump the lua script file elrs3? As above I created a folder called script on the sd card and saved it in there but not sure that's relevant to the 9xtreme. Anybody point me to the procedure for updating the module? Thanks.
User avatar
MikeB
9x Developer
Posts: 18077
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

The post above should refer to a ".BAS" file not a ".BAT" file.
The 9Xtreme does include support for LUA scripts as well as BAS scripts. You have to select which to use in the MODEL SETUP|GENERAL menu (near the bottom of the menu).

I think the module is updated using WiFi, and the module is put into WiFi mode by selecting the mode from the script (BAS or LUA).

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
IanF9X
Posts: 33
Joined: Mon Dec 15, 2014 9:57 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by IanF9X »

MikeB wrote: Sun Jan 05, 2025 2:46 pm The post above should refer to a ".BAS" file not a ".BAT" file.
The 9Xtreme does include support for LUA scripts as well as BAS scripts. You have to select which to use in the MODEL SETUP|GENERAL menu (near the bottom of the menu).

I think the module is updated using WiFi, and the module is put into WiFi mode by selecting the mode from the script (BAS or LUA).

Mike
Got module updated via uart to pc and downloaded elrsv3.lua and mounted to sd card on 9xe (in created 'scripts' folder on sd card). Getting message Script Panic not enough memory. I think SD card is 8gb, maybe I need bigger? Or maybe its the ram available more like?

Update, all seems ok now, installed the elrsv2.bas as above post and got into module ok. Thanks for all your help.
User avatar
MikeB
9x Developer
Posts: 18077
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

The elrsv3.lua file is too large for the 9Xtreme. It is also now using some "built in" functions that are not available in erskyTx at present.
I'll see if I can make some more memory available, and also look into adding the missing functions.

I've also attached a .zip file that contains the elrsV3.lua file and the compiled version (elrsV3.luac). If you put both of these into the "Scripts" directory (check they have the same date and time), then the Tx will not need to compile the LUA file and should then run using less memory. It won't work due to the missing functions!

Mike
Attachments
elrsV3.zip
(16.41 KiB) Downloaded 9 times
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
IanF9X
Posts: 33
Joined: Mon Dec 15, 2014 9:57 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by IanF9X »

MikeB wrote: Sun Jan 05, 2025 4:54 pm The elrsv3.lua file is too large for the 9Xtreme. It is also now using some "built in" functions that are not available in erskyTx at present.
I'll see if I can make some more memory available, and also look into adding the missing functions.

I've also attached a .zip file that contains the elrsV3.lua file and the compiled version (elrsV3.luac). If you put both of these into the "Scripts" directory (check they have the same date and time), then the Tx will not need to compile the LUA file and should then run using less memory. It won't work due to the missing functions!

Mike
Thanks for that Mike will try this out.
IanF9X
Posts: 33
Joined: Mon Dec 15, 2014 9:57 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by IanF9X »

MikeB wrote: Sun Jan 05, 2025 4:54 pm The elrsv3.lua file is too large for the 9Xtreme. It is also now using some "built in" functions that are not available in erskyTx at present.
I'll see if I can make some more memory available, and also look into adding the missing functions.

I've also attached a .zip file that contains the elrsV3.lua file and the compiled version (elrsV3.luac). If you put both of these into the "Scripts" directory (check they have the same date and time), then the Tx will not need to compile the LUA file and should then run using less memory. It won't work due to the missing functions!

Mike
the lua and compiled luac files give this message on running script:

Script Syntax Error
?:0: attempt to index field 'model' (a nil value)
press any key
User avatar
MikeB
9x Developer
Posts: 18077
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

I'm working on getting erskyTx to handle this script. I think I've added 3 missing functions, but now a 4th one has shown up, so I need to sort this one!

Mike

Edit: I've sorted the last, missing function, and the script is now running, however, the display is flickering so the script is not (yet) useable.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
IanF9X
Posts: 33
Joined: Mon Dec 15, 2014 9:57 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by IanF9X »

MikeB wrote: Mon Jan 06, 2025 8:07 pm I'm working on getting erskyTx to handle this script. I think I've added 3 missing functions, but now a 4th one has shown up, so I need to sort this one!

Mike
Thanks Mike, it’s all a bit beyond me. As I understand it ELRS is working towards a final unified version that I guess will mean the hardware will level off so to speak. The 9 xtreme radio has been a great and stable radio for me down the years, a credit to you and Steven’s work with erskytx at its heart.
User avatar
MikeB
9x Developer
Posts: 18077
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

I've posted a test version of erskyTx for the 9Xtreme that runs the elrsV3.lua script. The only ELRS module I have is a "lite" version so I tested the script operation on a FrSky X9Lite.
The only problem is some of the text doesn't fit the screen well, the script has been written expecting a proportional font and erskyTx is still using a fixed font.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
IanF9X
Posts: 33
Joined: Mon Dec 15, 2014 9:57 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by IanF9X »

MikeB wrote: Tue Jan 07, 2025 6:44 pm I've posted a test version of erskyTx for the 9Xtreme that runs the elrsV3.lua script. The only ELRS module I have is a "lite" version so I tested the script operation on a FrSky X9Lite.
The only problem is some of the text doesn't fit the screen well, the script has been written expecting a proportional font and erskyTx is still using a fixed font.

Mike
Thanks Mike that works. Flashed the little EPW6 with the dongle and used binding phrase as not possible to bind thru running script and selecting bind. No items in the script are selectable or can be adjusted but it does work.
User avatar
MikeB
9x Developer
Posts: 18077
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

I've just posted another test version. Hopefully this will fix not being able to select items when running the script.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
IanF9X
Posts: 33
Joined: Mon Dec 15, 2014 9:57 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by IanF9X »

MikeB wrote: Wed Jan 08, 2025 12:00 pm I've just posted another test version. Hopefully this will fix not being able to select items when running the script.

Mike
Thanks Mike, will try this tonight.

Update: yes now allows selection and adjustment of power level and packet rate. Some other functions give script errors on menu press. Bind does this for example, however maybe because I chose phrase for bind. It may be Mike that we are pushing the limits of the 9Xtreme board now. For use of the likes of the EPW6 little receiver all is fine thank you.
User avatar
MikeB
9x Developer
Posts: 18077
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

It may be I still have some missing functions in the implementation of LUA.
If you can post what the script errors are I can look into them.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
grifild
Posts: 23
Joined: Tue May 25, 2021 12:35 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by grifild »

MikeB wrote: Wed Jan 08, 2025 12:00 pm I've just posted another test version. Hopefully this will fix not being able to select items when running the script.

Mike
Planning to update my AR9X board (from p12 224) and ELRS module to the latest versions. Now I'm using elrs.bas some function are not working but that's ok. Will this tests version and ELRSV3.lua also will work on AR9X? Thank you
IanF9X
Posts: 33
Joined: Mon Dec 15, 2014 9:57 pm
Country: -

Re: ERSKYTx (was ersky9x) Questions

Post by IanF9X »

MikeB wrote: Wed Jan 15, 2025 3:33 pm It may be I still have some missing functions in the implementation of LUA.
If you can post what the script errors are I can look into them.

Mike
Mike, on pressing 'bind' and also 'enable wifi' I get:

Script Syntax Error
?:0: attempt to call upvalue '?' (a nil value)
press any key

I am using a binding phrase in any case through the configurator
User avatar
MikeB
9x Developer
Posts: 18077
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

grifild wrote: Sat Jan 25, 2025 1:26 am . . .Will this tests version and ELRSV3.lua also will work on AR9X? Thank you
The AR9X doesn't have enough spare RAM to be able to run anything but small LUA scripts (unless like me you have changed the processor to a '486 that has 128k RAM instead of 64k RAM !).

If you could detail what is not working in the .BAS script, I could look into it. Is the script you have elrs.bas or elrsV2.bas?

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

Re: ERSKYTx (was ersky9x) Questions

Post by MikeB »

IanF9X: I'll see if I can find out what is going wrong!

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

Post Reply

Return to “erskyTx (was ersky9x)”