ErskyTx on X20

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
slopingoff
Posts: 1
Joined: Sun Jan 16, 2022 9:05 pm
Country: -

Re: ErskyTx on X20

Post by slopingoff »

I am thinking of purchasing an X20s but need to know if it is possible to run Hitec protocol on a multimodule lite running ErskyTX(on dualboot system).At the moment I have a problem trying to source an Irange x lite module only place seems to be Banggood which they have now changed the MCU to Arm Cortex-M which I do not know will be a problem or not?

ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 »

the protocol is in the list
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 »

MCU is OK, I answered on RCGroups.

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 r6 of erskyTx for the X20.
This has support for a ELRS module, control and telemetry.
I've also improved the look of on-screen touch buttons, and improved many menus use of touch.
Some menus now have a scroll bar, which you may drag up and down.
Items in menus are selected by tapping them, and there is then a "Select" icon on the right to enable editing of them (or for items with only two states, the icon is a "toggle" icon.
On menu indices, select an item by touching the screen, if the wrong item is highlighted, simply drag your finger to the correct one, then lift your finger to select it.
I found out why dragging a finger was having a slow response, so that is now fixed.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
LeftDrift
Posts: 5
Joined: Sun Jan 23, 2022 10:50 pm
Country: -

Re: ErskyTx on X20

Post by LeftDrift »

Hey Mike, I'm the guy from RCGroups asking for the ELRS support. I have an X20S and r6 works when I'm in Ersky mode in that it boots and the sticks are responding as they should and I can build a model, calibrate, etc. I will try flying a bit later.

But I cannot create the composite.bin for dual boot. I go through the steps, and it does show a long progress bar when i select "create composite" but then the rename doesn't do anything, and when i look at the SD card, there is a composite.bin which is 0 bytes (it had not been renamed).

Any thoughts?

-rwxrwxrwx 1 LD staff 0 Dec 31 1969 composite.bin
drwxrwxrwx 1 LD staff 32768 Jul 7 2021 System Volume Information
drwxrwxrwx@ 1 LD staff 65536 Jul 12 2021 audio
drwxrwxrwx 1 LD staff 32768 Sep 16 23:34 firmware
drwxrwxrwx@ 1 LD staff 32768 Nov 23 18:14 scripts
drwxrwxrwx@ 1 LD staff 32768 Nov 23 18:14 bitmaps
drwxrwxrwx 1 LD staff 32768 Jan 1 13:47 models
drwxrwxrwx@ 1 LD staff 32768 Jan 5 13:38 lua-doc
drwxrwxrwx 1 LD staff 32768 Jan 5 13:44 logs
-rwxrwxrwx 1 LD staff 332 Jan 23 12:51 radio.bin
-rwxrwxrwx@ 1 LD staff 4651404 Jan 23 14:28 ethos.bin
-rwxrwxrwx@ 1 LD staff 406408 Jan 23 2022 erskytx_x20_h.bin
drwxrwxrwx 1 LD staff 32768 Dec 31 2047 RADIO

LeftDrift
Posts: 5
Joined: Sun Jan 23, 2022 10:50 pm
Country: -

Re: ErskyTx on X20

Post by LeftDrift »

Ignore that entire previous post! LOL

I manually dual booted by flashing back to Ethos and then back to ErskyTX a couple of times until the composite.bin got made! I am now dual booting like a crazy super user!

One question: how do I run Lua script for ELRS?
LeftDrift
Posts: 5
Joined: Sun Jan 23, 2022 10:50 pm
Country: -

Re: ErskyTx on X20

Post by LeftDrift »

I can confirm ELRS link is up and running with r6 on my X20S with one of my quads. Great stuff, Mike! Thanks!

I think I'll get a TX module with a joystick so I don't even need lua scripts.
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 haven't got LUA support in (yet). I am, however, looking to see if I can get ELRS configuration support built in to erskyTx.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
LeftDrift
Posts: 5
Joined: Sun Jan 23, 2022 10:50 pm
Country: -

Re: ErskyTx on X20

Post by LeftDrift »

I think all that's really needed for ELRS is some kind of an indicator to show:

- xfire link is operational and error free to the module
- module and craft are talking to each other and operational
- RSSI/RX lost warnings

Maybe the above already exist, but I don't know where to look as I'm new to ErskyTX. I'll keep poking around.

The new ELRS TX modules all have joysticks and displays for configuration which means they don't need the OS to do configuration work.
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 »

RSSI is already available. Go to "MODEL SETUP/TELEMETRY/HiRes" menu, and create a high resolution telemetry display. Set a field to be "Value" and set it to RSSI.
From the main display, press the DISP button to cycle through the created page(s).

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
LeftDrift
Posts: 5
Joined: Sun Jan 23, 2022 10:50 pm
Country: -

Re: ErskyTx on X20

Post by LeftDrift »

Got RSSI on display. I'm happy as a clam and have a fully armed and operational X20S!
grifild
Posts: 22
Joined: Tue May 25, 2021 12:35 pm
Country: -

Re: ErskyTx on X20

Post by grifild »

MikeB wrote: Mon Jan 24, 2022 9:28 am I haven't got LUA support in (yet). I am, however, looking to see if I can get ELRS configuration support built in to erskyTx.

Mike
Hi Mike!
This is great news! I use AR9X with ELRS, of course with your help. But starting from ELRS v2.0 I don't have the option to change the settings because the old ELRS.bas script doesn't work. Since version 2.0 ELRS works with crossfire script, I tried this https://github.com/nrw505/ersky9x-crossfire-script but I can only get device list and then I get "error 111" You may find useful information in that script

Or if you will add ELRS configuration support in to erskyTX hope it also will be available for old ATMEL boards
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 »

Do you know what line the error 111 is reported on? The error is saying an array is not large enough, so there may be an easy fix.
I actually have an ELRS module and Rx (from FrSky) I'm just starting to learn how to use.
I'm not sure what firmware version is on the Tx module, it is supposed to be 2.0, but my attempt at getting a response doesn't work. I do seem to get a response if I try something from 1.0.
If I get the module flashed with 2.0, I should be able to try that script myself.
Could you point me to where the .bas script you were using for 1.0 is please. I'd like to try both of these.

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

Re: ErskyTx on X20

Post by grifild »

For ELRS v1.X.X I used this script and it worked without problems https://github.com/ExpressLRS/ExpressLR ... /src/basic
It is written by @spinorkit
You discussed questions about ELRS with him in this thread https://openrcforums.com/forum/viewtopi ... start=2160

About ELRS v2.X.X As I wrote, I tried script from the previous post the script is started and shows TX and RX (in my case "Frsky R9M" and "Frsky R9MM" with ELRS firmware 2.0), but after selecting the TX Module I get an error "Error 111 in line 322" when I choose RX in the list I get "Waiting for params..." and nothing else happens

I've already try to fix when I had Crossfire module, but my knowledge is not enough. We have already discussed it in this branch: https://openrcforums.com/forum/viewtopi ... &start=210
GK75
Posts: 2
Joined: Wed Feb 09, 2022 5:33 pm
Country: -

Re: ErskyTx on X20

Post by GK75 »

Could anybody post a Pic of what ErskyTx looks like on thd x20 display please?
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 »

Here are some screen dumps as it currently is. I am working to improve things.
The background and text colours may be selected.

The main screen:
main.jpg
main.jpg (39.01 KiB) Viewed 89673 times
Model Index, the "EXIT" on screen button works on the touch screen.
MenuIndex.jpg
MenuIndex.jpg (44.51 KiB) Viewed 89673 times
Selecting an item from a list, the grey bar is a scroll bar you may drag on screen.
ItemSelect.jpg
ItemSelect.jpg (50.21 KiB) Viewed 89673 times
Editing a value, add/subtract 1 (+/-) or by 20 (++/--).
ValueEdit.jpg
ValueEdit.jpg (47.92 KiB) Viewed 89673 times
Custom display for telemetry showing some values. Background and text colours are selectable for each item.
CustomData.jpg
CustomData.jpg (54.04 KiB) Viewed 89673 times
Custom display showing channel bars, colours are selectable.
CustomBars.jpg
CustomBars.jpg (58.8 KiB) Viewed 89673 times
Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
phil
Posts: 119
Joined: Thu Jan 14, 2016 7:03 am
Country: Germany
Location: München
Contact:

Re: ErskyTx on X20

Post by phil »

Hi Mike,
I think it's good to be able to adjust the colors. that upgrades your system a lot.
the arrows on the side are for the new touch display, great.
say hello to Siegi
GK75
Posts: 2
Joined: Wed Feb 09, 2022 5:33 pm
Country: -

Re: ErskyTx on X20

Post by GK75 »

Thanks for posting the pics - helps a lot in getting the idea.
I‘m having a 110 inch Superstar in the making - so liked the first pic esoecially 😊
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 close to having a script working for ELRS V2. I have a couple of small bugs with running the script on the X20, it is running OK on a X9LiteS.

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 »

Hi Mike,

First, thanks so much for doing this! I've been following along, and now that ELRS is working I took the plunge and set my X20 up for dual boot. It's working great! I was able to get one of my ELRS quads working very quickly, since it was already bound to the module (using EdgeTX / X9 Lite). I'm still reading about Ersky, but one thing has stumped me thus far:

How do you inverse something in the Logical Switch menu? For example, I want to say !SG<direction>. I do this when I want to make a 3 position switch function as a 2 position, like for arming / disarming.

Thanks!

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 »

When selecting a logical switch, you start from "---" and as you go "up", it steps through SA^, SA-, SAv, SB^ and so on.
If instead you go "down" it steps through !SA^, !SA-, !SAv, !SB^ and so on.
As a legacy function, the SYS and DISP buttons act as "left" and "right". In theory, pressing both together toggles the not (!) setting. Unfortunately, due to the hardware design on the X20, doing this usually results in either the MDL button (up) or the RTN (exit) button also activating.
I'll see if I can come up with an easy way of toggling between normal switch and !switch.

Mike

Edit: OK, got a long press of the encoder button toggling switch settings between normal and not (!). I have code on other radios that allows setting the required switch by just moving a switch, this will be added at some point.

Any suggestions on improving the look and operation of the touch screen welcome.
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 »

Thanks Mike! I didn't think to try that.
This is really great. As a software guy myself (C#), I admire your skills and perseverance in getting this to work.
I'm way too green at ErskyTx to offer any useful suggestions, but if something obvious pops up I will let you know. :)

Chris
grifild
Posts: 22
Joined: Tue May 25, 2021 12:35 pm
Country: -

Re: ErskyTx on X20

Post by grifild »

MikeB wrote: Tue Feb 22, 2022 11:32 pm I'm close to having a script working for ELRS V2. I have a couple of small bugs with running the script on the X20, it is running OK on a X9LiteS.

Mike
:o Wow! This is great news, I check this thread very often in the hope of seeing a working script for Elrs v2 from you :) . If you need help with testing, I'm ready. I'm using AR9X (erskyTxR223B6) with R9M module (ELRS v2.2.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 »

I should be able to post a script later today. Yesterday, I released R223 of erskyTx. This includes a change to something in script handling that is needed to be able to have the ELRSv2 script working.

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 ELRSv2 script on the "Scripts for ersky9x" thread.
You will need R7 (or later) of the X20 firmware for it to run.

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 R7. This supports the ELRSv2.bas script.
Some menus were missing, these are now included, even if the function is not yet implemented.
Add background music.
Add model image support. Model images may be up to 350 wide by 180 high at present. They need to be in .BMP format 24-bits per pixel, and placed in the "images" directory.

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 »

Thanks Mike! I grabbed it and dropped the erskytx_x20_h.bin file into the root (replacing the old one), and ran the create composite task. It did create composite.bin, but it's zero bytes in size. I tried this several times, and it's still a zero byte file. Any idea what I'm doing wrong?

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 »

What version of Ethos are you using, I'll check with the same version?
I assume you still have Ethos on the root of the SD card, named "ethos.bin".

Mike

Edit: When you try to create the composite.bin, do you see a progress bar filling up?
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 »

I'm running 1.1.1, FCC
ethos.bin is in the root directory
The progress bar does fill up, it seems like it is working. Well, it does work sortof, it's creating the file. It's just empty. :)

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 »

Does it ask about renaming composite.bin to firmware.bin?
If you haven't tried it, try deleting composite.bin before you start.

I just tested using ethos 1.1.1 and I did get a composite.bin with a non-zero size.

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

Post Reply

Return to “erskyTx (was ersky9x)”