ERSKYTx (was ersky9x) Questions
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
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
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKYTx (was ersky9x) Questions
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
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
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
I've released r226 that should fix the problem.
Mike
Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKYTx (was ersky9x) Questions
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!
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!
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
Do you know what version you had before you flashed r225?
Did r225 bind OK?
Mike
Did r225 bind OK?
Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKYTx (was ersky9x) Questions
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)
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)
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
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
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKYTx (was ersky9x) Questions
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?
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?
Re: ERSKYTx (was ersky9x) Questions
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 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 ),
Google words (HappyModel ES24TX micro, 9Xr-pro, ELRS3.0, elrs, Expresslrs)
*7jan changelog; changed .bat to .bas reference
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 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 ),
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.
Re: ERSKYTx (was ersky9x) Questions
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.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 ),
Google words (HappyModel ES24TX micro, 9Xr-pro, ELRS3.0, elrs, Expresslrs)
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
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
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKYTx (was ersky9x) Questions
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?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
Update, all seems ok now, installed the elrsv2.bas as above post and got into module ok. Thanks for all your help.
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
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
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKYTx (was ersky9x) Questions
Thanks for that Mike will try this out.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
Re: ERSKYTx (was ersky9x) Questions
the lua and compiled luac files give this message on running script: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
Script Syntax Error
?:0: attempt to index field 'model' (a nil value)
press any key
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKYTx (was ersky9x) Questions
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.
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
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
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKYTx (was ersky9x) Questions
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.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
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
I've just posted another test version. Hopefully this will fix not being able to select items when running the script.
Mike
Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKYTx (was ersky9x) Questions
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.
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
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
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKYTx (was ersky9x) Questions
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
Re: ERSKYTx (was ersky9x) Questions
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
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
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!
The difficult we do immediately,
The impossible takes a little longer!
- MikeB
- 9x Developer
- Posts: 18077
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKYTx (was ersky9x) Questions
IanF9X: I'll see if I can find out what is going wrong!
Mike
Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!