ERSKY9X Coding

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: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

One step at a time, I can include the trainer source in each trainer profile. I've done the change and this seems to be working.
This seems a beneficial change.

Regarding the pulse on PPM2. I haven't looked at the code you are using, but I would suggest it might filter such pulses and only turn on if pulses continue for, say, at least 30mS.
I'll need to check for possible reasons for the pulse occuring, although I will look at stopping all pulses while changing models anyway.

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

User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

MikeB wrote:One step at a time, I can include the trainer source in each trainer profile. I've done the change and this seems to be working.
This seems a beneficial change.
Thanks Mike, it is a great improvement.. selecting a profile from the Model Setup would be another great and powerful improvement.. But as you say, one step at the time :)
Regarding the pulse on PPM2. I haven't looked at the code you are using, but I would suggest it might filter such pulses and only turn on if pulses continue for, say, at least 30mS.
I'll need to check for possible reasons for the pulse occuring, although I will look at stopping all pulses while changing models anyway.

Mike.
Yes, stopping the pulses might be a good idea..

I have PM'ed you the code I'm using on the RF Module Switch. The reason I don't post it here or anywhere else yet, is that I don't want people to use it unless it is tested ok.. :)

Thanks

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Daedalus66
Posts: 1844
Joined: Tue Dec 27, 2011 8:22 pm
Country: -
Location: Ottawa

Re: ERSKY9X Coding

Post by Daedalus66 »

It all sounds very promising. Back to working on the Guide!
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

I've just posted new test versions. These have two additions:
1. Protocol outputs to modules are stopped while a new model is loaded and switch/throttle alarms are cleared.
2. I have extended the options when you select the MULTI protocol to allow for new items.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Thank you.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Mike, I can see that every trainer profile can have its own source. That is great, thank you.

This allows us to use different trainer systems without having to configure the trainer menu all the time.
For example;
Profile "0" - I have configured for trainer over bluetooth between 2 ersky9x radios
Profile "1" - Configured with "Jack" as source. for using with an er9x radio or another system that outputs PPM
Profile "2" - Configured as Slave. Outputs PPM with the radio powered ON and turns the signal to the RF modules OFF. Connect to PC/Simulator
Profile "3" - Also configured as "Jack" for a second radio that outputs PPM, from another student for example.

There's only one thing missing to make this perfect. Well, at least I can't find the option :)

It would be great an option on Model Setup/General near the trainer ON/OFF option to also select one of the 4 Profiles.
This would avoid us to even touch the trainer menu unless we needed to calibrate a new TX.
This option would display the profile name. If no name was inserted, then the profile number.. Something like this ;) :D

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

For the SKY/AR9X boards I've just posted a test version where the EEPROM BACKUP and RESTORE functions look to be working.
BEFORE testing, please do a BACKUP of the EEPROM to your PC, just in case I have something wrong.

After a RESTORE, I believe I re-configure the radio correctly to the re-loaded values, but in general I would recommend a power off/on cycle before using the restored EEPROM.

At present the BACKUP operation creates a file on the SD card that includes the current date in its name. This means if you do a second BACKUP on the same day, it will overwrite this file.

This should work on the 9Xtreme as it uses the same type of EEPROM/file system, I just need to test it before I post anything.

As the Taranis uses a different EEPROM/file system I have still to code the reading and writing of the EEPROM for it.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Mike, do these test versions include the other features you implemented before? trainer, etc??

Thanks

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
willhac
Posts: 89
Joined: Tue Feb 19, 2013 11:25 am
Country: France

Re: ERSKY9X Coding

Post by willhac »

Any news about supporting MULTI as internal module of the 9xtreme ?
With all the protocols It implies too much constraints perhaps ?

(...and do others need it except me ! :mrgreen: )
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Yes, that would be nice..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

Yes the test version include the trainer changes.
I'm working on EEPROM backup/restore for the Taranis.
I've just done some changes towards adding more protocols to the internal connection. I have the low level initialisation ready. I'll need to check the interrupt and then I need to add code to generate the required datastream(s) in memory separate from those for the external datastreams.

I have the EEPROM backup/restore tested on the 9Xtreme. While doing so, I noticed the display flickers while showing the progress bar. I've found the cause of this and fixed it.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Mike, possible to display a "B" at the top of the main screens when we have BT connection?
I find myself going to the BT debug screen very often to confirm it is connected.. :)

Thanks

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Bluetooth, Auto connect setting doesn't seem to be saved..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

willhac wrote:Any news about supporting MULTI as internal module of the 9xtreme ?
I think I have this working. I have actually extended the internal protocol options to include DSM (for a hack module) as well as MULTI.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: RE: Re: ERSKY9X Coding

Post by jhsa »

MikeB wrote:
willhac wrote:Any news about supporting MULTI as internal module of the 9xtreme ?
I think I have this working. I have actually extended the internal protocol options to include DSM (for a hack module) as well as MULTI.

Mike.
Possible on the other platforms?
Thanks

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

No point on the Taranis as that has a XJT on the internal connection.
Unlike the 9Xtreme, where the internal hardware is basically the same as the external hardware, the Atmel based boards don't have the same hardware support for the internal connection. This means I would need to write a whole new driver, and it may not work. The 9Xtreme just needed the same code running on a different timer so was quite easy to do and was pretty much guaranteed to work.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Thanks, that means internal frsky and external multi, or we just swap the connections so PPM2 goes to the module bay instead.. :)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
willhac
Posts: 89
Joined: Tue Feb 19, 2013 11:25 am
Country: France

Re: ERSKY9X Coding

Post by willhac »

Thanks Mike,
I have a "multi" modified Flysky module inside my 9xtreme radio, it actually works with PPM.
I will "serial" test it as soon as a test version will be available.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

New eeprom menu in Radio setup. Suggestion..
Some confirmation screen at least before restoring the eeprom. And menu long to do it..
Thanks
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

Done!

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

DiagAna screen. On my Ar9x board radio there are two A8.
The skyboard which runs the same formware doesn't show this problem.. 9XT also not.

Also, on this radio, I can make the welcome (or other warnings) message stop playing by hittin EXIT a couple times while the radio is powering up..
Can't reproduce it on the other platforms..
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

I've just posted a new test version. The 9Xtreme should support DSM and MULTI on the internal module protocol.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
willhac
Posts: 89
Joined: Tue Feb 19, 2013 11:25 am
Country: France

Re: ERSKY9X Coding

Post by willhac »

I tried it with a wltoys F929/939 board that needs autobind, it works great :)
Just a small display bug when going down to the line "External ON/OFF" : Type-Autobind-Power not displayed.
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

OK, I can fix that.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

The test version Mike posted today includes the new trainer profiles and also an option in Model Setup/General so you can select a trainer profile for that model.
Here is a video that explains how to use it, as well as configure the BT.

https://www.youtube.com/watch?v=jspHxDJ9jyo

If you are not interested in the bluetooth, just go to minute 19:05. That is where the trainer section starts..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

jhsa wrote:
Also, on this radio, I can make the welcome (or other warnings) message stop playing by hittin EXIT a couple times while the radio is powering up..
Can't reproduce it on the other platforms..
João
Mike, about this problem, on Ar9x, moving the stick clears the splash screen, but also stops the voice immediately..
as far as I can see it happens only on this board..
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

I can't reproduce the problem, with either the stick or EXIT, and I tried with the volume on P3 and the volume just fixed in the menu.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Daedalus66
Posts: 1844
Joined: Tue Dec 27, 2011 8:22 pm
Country: -
Location: Ottawa

Re: ERSKY9X Coding

Post by Daedalus66 »

jhsa wrote:DiagAna screen. On my Ar9x board radio there are two A8.
The skyboard which runs the same formware doesn't show this problem.. 9XT also not.

Also, on this radio, I can make the welcome (or other warnings) message stop playing by hittin EXIT a couple times while the radio is powering up..
Can't reproduce it on the other platforms..
João

On my 9Xtreme the channel order in DiagAna is RETA, which is what I expect.
On my AR9x channel order is RTEA

Also, as Joao says, there are two A8s on AR9x. Also one A9.
On 9XT there is one A8 and no A9.

Both are running the latest test firmware PR219j
Daedalus66
Posts: 1844
Joined: Tue Dec 27, 2011 8:22 pm
Country: -
Location: Ottawa

Re: ERSKY9X Coding

Post by Daedalus66 »

MikeB wrote:I can't reproduce the problem, with either the stick or EXIT, and I tried with the volume on P3 and the volume just fixed in the menu.

Mike.
Same here. No problem.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

I will have to investigate deeper. If I don't find the cause of the problem I will make a little video so you see what is happening.
I can make the radio stop speaking at startup by pressing a key ( not sure if it happens with all keys), or moving a stick.
It looks to be connected to clearing the splash screen.
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

Post Reply

Return to “erskyTx (was ersky9x)”