ErskyTx on X20

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

MikeB wrote: Sat Jun 04, 2022 9:45 pm I've posted a new test version. In the "Statistics" area is a new menu labelled "REPORT". This contains text of debug information, up to 100 lines. When this menu shows, press ENTER to stop the screen index flashing (6/8?), then the encoder will scroll the text.

This text should indicate what is happening when reading/creating the RADIO directory, and also when playing a voice file.
There is also a change where I detect an input indicating the board type, and I do something different when starting the audio driver depending on the board type.

Mike
Verzia "SDtest2" funguje lepšie a ukladá nastavenia rádia a modelov. 8-)

Zvuk, screenshot (0kb) nefunguje.
The voice file cannot be inserted anywhere. (choose)

I stop the cursor blinking 6/8 (Report).
The screen shows:
Attachments
report.JPG
report.JPG (76.08 KiB) Viewed 72399 times

User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

Again, SDtest2 no longer saves radio and model settings :oops:
Overrides the model name when changing the model.
Attachments
P6050639.JPG
P6050639.JPG (73.73 KiB) Viewed 72394 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 »

I believe the voice files are playing OK, but there is a problem with enabling the audio amplifier. I'm looking into this.
To find out why setting are not being saved, please flash the SDtest3 I've just posted.
Start the radio, then select another model. This should force a save of radio, model and model name settings.
Now go to the REPORT menu and let me know what is reported. You will likely need to scroll down to get all the reports.

Mike

Edit: SDtest4 also posted, this may have the audio amplifier always enabled.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

I have SDtest3

I renamed Model01 and changed the background color.
Then I selected position 02 (Model02) and took the display. (it's whole, it doesn't go down anymore)
Off and on and the changes are gone.
Attachments
P6060641.JPG
P6060641.JPG (73.8 KiB) Viewed 72365 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 »

That tells me an actual write to the SD card is failing. I'll need to add some more debug in the lower level code to find out why!
Does SDtest4 voice now work?

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

User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

I guess I ran into something (bug).
Changes are saved unless I set (use) the switch on "Screenshot". Then it goes wrong and nothing is saved and model names change, etc.
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

MikeB wrote: Mon Jun 06, 2022 10:37 am That tells me an actual write to the SD card is failing. I'll need to add some more debug in the lower level code to find out why!
Does SDtest4 voice now work?

Mike
No sound at all.
Attachments
P6060647.JPG
P6060647.JPG (72.62 KiB) Viewed 72357 times
P6060645.JPG
P6060645.JPG (72.98 KiB) Viewed 72357 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 »

New test version posted (SDtest5).
I've added more debug to the report, including some in the screenshot process.
Please flash, then start the radio normally.
1. Change models, settings should be saved.
2. Do a screenshot.
3. Change models again.
Then let me know what is on the report screen.
To make the report easier to see, all 100 lines are now shown, with unused lines containing "----".

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

No sound at all. (SDtest5)
Selecting the "screenshot" switch may damage the SD card. Again, changes cannot be saved. It cannot be opened after connecting to a PC.
Attachments
P6060651.JPG
P6060651.JPG (74.45 KiB) Viewed 72343 times
P6060649.JPG
P6060649.JPG (78.95 KiB) Viewed 72343 times
P6060648.JPG
P6060648.JPG (77.17 KiB) Viewed 72343 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 »

New test version posted (SDtest6).
Please repeat the test for SDtest5.
There are over 40 places in the file handling where a disk error is reported. This test version should tell me where this is happening. It may be a write to the SD card that is failing (may be a timeout), or it may be the file handling. It is possible that if the SD access does get a timeout, I may not be recovering the hardware driver so it locks up.

As well as the REPORT menu, the DEBUG menu also has a count of the number of physical reads and write that have failed, the two values on the line starting "SD Errors".

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

"SDtest6"

Radio and model changes cannot be forced to be recorded
No sound
Screenshot 0 kB
Attachments
P6070659.JPG
P6070659.JPG (76.48 KiB) Viewed 72317 times
P6070660.JPG
P6070660.JPG (72.81 KiB) Viewed 72317 times
P6070661.JPG
P6070661.JPG (73.7 KiB) Viewed 72317 times
P6070662.JPG
P6070662.JPG (77.15 KiB) Viewed 72317 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 »

OK, new test version. This reports SD write timeouts. It also then extends the timeout to see if it then completes.
The DEBUG menu also shows the total number of writes carried out.
Please try a screenshot again.

I'm still looking at the audio problem.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

MikeB wrote: Tue Jun 07, 2022 4:05 pm OK, new test version. This reports SD write timeouts. It also then extends the timeout to see if it then completes.
The DEBUG menu also shows the total number of writes carried out.
Please try a screenshot again.

I'm still looking at the audio problem.

Mike
"SDtest7" DEBUG
Attachments
P6070668.JPG
P6070668.JPG (72.46 KiB) Viewed 72291 times
P6070664.JPG
P6070664.JPG (71.38 KiB) Viewed 72296 times
P6070665.JPG
P6070665.JPG (72.47 KiB) Viewed 72296 times
P6070663.JPG
P6070663.JPG (78.56 KiB) Viewed 72296 times
Last edited by jurajjurej on Tue Jun 07, 2022 8:01 pm, edited 1 time in total.
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 also let me know what is in the DEBUG menu (SD Write Count value).
Do you hear anything from the audio, particularly just at the end of the "STARTING" screen is there a "click"?

It seems some disk writes are taking a long time as extending the timeout let some writes complete.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

(Do you hear anything from the audio, particularly just at the end of the "STARTING" screen is there a "click")
No, I can't hear.
I added a DEBUG photo
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 Mike,

I’ve tested sd_test6 in my x20s.
Here you are the results.
IMG_6724.jpg
(2.15 MiB) Not downloaded yet
IMG_6725.jpg
(2.01 MiB) Not downloaded yet
IMG_6726.jpg
(2.5 MiB) Not downloaded yet
IMG_6727.jpg
(2.7 MiB) Not downloaded yet
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

All works fine except voice.
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

Narcis wrote: Tue Jun 07, 2022 10:03 pm All works fine except voice.
And what about the screenshot? When I set the switch everything goes wrong.
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

jurajjurej wrote: Wed Jun 08, 2022 2:51 am
Narcis wrote: Tue Jun 07, 2022 10:03 pm All works fine except voice.
And what about the screenshot? When I set the switch everything goes wrong.
In my transmitter works fine.
I set the screenshot switch, activate several times, changed model settings (two models), changed displays, switched off the transmitter… all were saved.
Attachments
IMG_6731.jpg
(2.05 MiB) Not downloaded yet
IMG_6728.jpg
(2.38 MiB) Not downloaded yet
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

Narcis wrote: Wed Jun 08, 2022 1:29 pm
jurajjurej wrote: Wed Jun 08, 2022 2:51 am
Narcis wrote: Tue Jun 07, 2022 10:03 pm All works fine except voice.
And what about the screenshot? When I set the switch everything goes wrong.
In my transmitter works fine.
I set the screenshot switch, activate several times, changed model settings (two models), changed displays, switched off the transmitter… all were saved.
Please ask for a photo of the SD card
User avatar
Narcis
Posts: 21
Joined: Wed Mar 02, 2022 1:52 pm
Country: Spain
Location: Barcelona

Re: ErskyTx on X20

Post by Narcis »

This is my sd card
Attachments
IMG_6733.jpg
(429.37 KiB) Not downloaded yet
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

Narcis wrote: Wed Jun 08, 2022 3:07 pm This is my sd card
Thank you and it helped me.
I apologize for the bad English
But I meant SD content.
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 »

8th test version posted. I've extended the SD write timeout to 210 mS. It seems SD cards may, sometimes, have a latency of up to 200mS, when they are doing some internal changes to do with "wear levelling".

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 »

jurajjurej wrote: Wed Jun 08, 2022 6:27 pm
Narcis wrote: Wed Jun 08, 2022 3:07 pm This is my sd card
Thank you and it helped me.
I apologize for the bad English
But I meant SD content.
Don´t worry, my english is not very good either.
Attachments
Captura de pantalla (2).png
(172.31 KiB) Not downloaded yet
Captura de pantalla (1).png
(157.34 KiB) Not downloaded yet
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 assume the audio works correctly, for both of you, when you run ETHOS.

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 »

MikeB wrote: Wed Jun 08, 2022 7:47 pm I assume the audio works correctly, for both of you, when you run ETHOS.

Mike
Yes, audio works correctly in Ethos.

Narcís
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

MikeB wrote: Wed Jun 08, 2022 7:47 pm I assume the audio works correctly, for both of you, when you run ETHOS.

Mike
Yes, it works
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

"SDtest8"
Success! *It's already working. I bought SD Verbatim Pro microSDHC 32GB UHS-I V30 U3 (90R / 45W)
https://www.verbatim.com/prod/flash-mem ... microsdhc/
It would also like to fine-tune it for a standard SD card with a write of 10 MB / s.
*Only sound doesn't work anymore.
screen-stat.png
screen-stat.png (15.45 KiB) Viewed 72201 times
screen 4-8.png
screen 4-8.png (15.55 KiB) Viewed 72201 times
screen 5-8.png
screen 5-8.png (11.35 KiB) Viewed 72201 times
screen 6-8.png
screen 6-8.png (13.64 KiB) Viewed 72201 times
screen2 6-8.png
screen2 6-8.png (20.65 KiB) Viewed 72201 times
screen 7-8.png
screen 7-8.png (9.27 KiB) Viewed 72201 times
screen 8-8.png
screen 8-8.png (10.83 KiB) Viewed 72201 times
Last edited by jurajjurej on Thu Jun 09, 2022 8:16 pm, edited 2 times in total.
User avatar
jurajjurej
Posts: 61
Joined: Mon May 23, 2022 6:32 am
Country: Slovakia

Re: ErskyTx on X20

Post by jurajjurej »

Choosing a screenshot switch cuts a bit.
Statistics window 6/8 freezes.
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 »

Have you tried SDtest8 with the original SD card?
The screenshot takes several seconds to write to the SD card, and the screen image has to be fixed while that is done.

I'm looking to see why the audio is not sounding.

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

Post Reply

Return to “erskyTx (was ersky9x)”