Using FrSky S6R with ersky9x
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Using FrSky S6R with ersky9x
I have received a request to add support for the FrSky S6R stabiliser receiver on ersky9x. In particular, adding the ability to configure the S6R from the radio. The request included some funds to enable me to purchase a S6R .
So, I had a S6R delivered today!
I also got a STK to allow configuration from a PC.
To be able to configure the S6R from the radio requires sending Sport data out from the radio, so needs a bi-directional SPort connection.
The Taranis (X9D, X9D plus and X9E), 9XR-PRO and 9Xtreme platforms all have this as standard.
The SKY board and AR9X boards do not have this, although it should be possible make it work by connecting COM1 Tx and Rx together, possibly including a diode in the connection. If this is done, it will probably cause problems if using a DJT and requiring the radio configure the alarms on the DJT. It may be necessary to either remove the ability to configure a DJT in this way, or add an option to indicate that COM1 is configured as SPort and so it isn't possible to access a DJT for configuration.
Note that eepskye includes a facility to configure the alarms on a DJT.
There is also a problem with the SKY board. It 'only' has 256K of flash memory, and the firmware is approaching this limit. All the other platforms have at least 512K of flash.
My plan, for now, is to provide a version of ersky9x that only supports 2 or 3 languages. This would save 25K of flash, and would be for the SKY board only.
I've also now added a test version of "SportSet" that I originally wrote to allow setting the UART sensor. This now also has a "tab" for the S6R. To install, simply unzip the files in the .zip into a suitable directory (if you have eepe/eepskye installed, you may just put SportSet.exe into your eepe directory).
To use, connect your S6R using the STK device to your computer, then run SportSet. Select the S6R tab and choose the COM port your STK is on. Then click the "start" button. SportSet should then read the parameters from the S6R, then you may use the "next" and "Previous" buttons to step through them. You may change any value and then use the "Write" button to write the new value (just the one) to the S6R. Clicking the "Read" button reads a single value from the S6R.
Be aware this is a first test version. I'm posting it as it allows setting servo directions to "Off" that cannot be done using the FrSky program.
Mike.
Test Version of "SportSet" Test versions of ersky9x follow.
So, I had a S6R delivered today!
I also got a STK to allow configuration from a PC.
To be able to configure the S6R from the radio requires sending Sport data out from the radio, so needs a bi-directional SPort connection.
The Taranis (X9D, X9D plus and X9E), 9XR-PRO and 9Xtreme platforms all have this as standard.
The SKY board and AR9X boards do not have this, although it should be possible make it work by connecting COM1 Tx and Rx together, possibly including a diode in the connection. If this is done, it will probably cause problems if using a DJT and requiring the radio configure the alarms on the DJT. It may be necessary to either remove the ability to configure a DJT in this way, or add an option to indicate that COM1 is configured as SPort and so it isn't possible to access a DJT for configuration.
Note that eepskye includes a facility to configure the alarms on a DJT.
There is also a problem with the SKY board. It 'only' has 256K of flash memory, and the firmware is approaching this limit. All the other platforms have at least 512K of flash.
My plan, for now, is to provide a version of ersky9x that only supports 2 or 3 languages. This would save 25K of flash, and would be for the SKY board only.
I've also now added a test version of "SportSet" that I originally wrote to allow setting the UART sensor. This now also has a "tab" for the S6R. To install, simply unzip the files in the .zip into a suitable directory (if you have eepe/eepskye installed, you may just put SportSet.exe into your eepe directory).
To use, connect your S6R using the STK device to your computer, then run SportSet. Select the S6R tab and choose the COM port your STK is on. Then click the "start" button. SportSet should then read the parameters from the S6R, then you may use the "next" and "Previous" buttons to step through them. You may change any value and then use the "Write" button to write the new value (just the one) to the S6R. Clicking the "Read" button reads a single value from the S6R.
Be aware this is a first test version. I'm posting it as it allows setting servo directions to "Off" that cannot be done using the FrSky program.
Mike.
Test Version of "SportSet" Test versions of ersky9x follow.
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: Using FrSky S6R with ersky9x
So, that wouldn't apply if the Ar9x board is selected in hardware, Right?
Sent from my thor using Tapatalk
Sent from my thor using Tapatalk
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Using FrSky S6R with ersky9x
We will end with a .bin file for the AR9X specifically, and another .bin for the SKY board. Current test versions look at the processor, and if there is 512K flash, automatically set AR9X anyway.
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: Using FrSky S6R with ersky9x
Thanks Mike, about the DJT, I believe there is no need to set alarms on the module itself.. As you say, eepskye could do that anyway..
João
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
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
Re: Using FrSky S6R with ersky9x
Thanks, Mike!
Regarding XJT and DJT, may it be an idea to assume an XJT / S.Port-capable device when protocol is set to PXX, and assume DJT otherwise?
Though, I'm not sure if this is applicable in the maintenance mode (there are no model settings there!)...
Regarding XJT and DJT, may it be an idea to assume an XJT / S.Port-capable device when protocol is set to PXX, and assume DJT otherwise?
Though, I'm not sure if this is applicable in the maintenance mode (there are no model settings there!)...
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Using FrSky S6R with ersky9x
An update on progress (I've not had much time over the last few days).
I've re-written the SPort receive code to use interrupts (instead of DMA) so I can monitor for a poll and send SPort data out. This is all working, and I am able to send a SPort packet out and see it sent out from a X8R, so the driver code is all working (tested on a 9XR-PRO).
The next step is to add a menu to make use of this and get/send data from/to a S6R.
Mike.
I've re-written the SPort receive code to use interrupts (instead of DMA) so I can monitor for a poll and send SPort data out. This is all working, and I am able to send a SPort packet out and see it sent out from a X8R, so the driver code is all working (tested on a 9XR-PRO).
The next step is to add a menu to make use of this and get/send data from/to a S6R.
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: Using FrSky S6R with ersky9x
Perhaps a Sub-Menu from the telemetry menu? Just like the custom screens?
Thanks
João
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Using FrSky S6R with ersky9x
To get this working, I've just added another menu when you go UP from the main screen. Exactly where this ends up is still to be decided.
I've got the first two items (wing type and mounting) working, I can read the values from the S6R, update them and write them back.
Mike.
I've got the first two items (wing type and mounting) working, I can read the values from the S6R, update them and write them back.
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: Using FrSky S6R with ersky9x
Wow, terrific! Thanks, Mike!!!
For some reason, I imagine this should be part of the Maintenance mode. As I understand, this is something that doesn't need to be changed on a regular basis. So it's Ok to start your radio in the Maintenance mode, make necessary changes and then reboot for normal flying.
The S.Port firmware update, Device ID change and the new S6R configuration could be grouped to something like an "S.Port Tools" in the Maintenance mode.
For some reason, I imagine this should be part of the Maintenance mode. As I understand, this is something that doesn't need to be changed on a regular basis. So it's Ok to start your radio in the Maintenance mode, make necessary changes and then reboot for normal flying.
The S.Port firmware update, Device ID change and the new S6R configuration could be grouped to something like an "S.Port Tools" in the Maintenance mode.
Re: Using FrSky S6R with ersky9x
If that is the case I agree with Andrewju. I don't have that hardware myself,,
João
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
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
Re: Using FrSky S6R with ersky9x
Calibration only needs to be done once indeed, but setting directions and gains is something you might need to do quite a few times and would want the radio/sticks to be operational when you do so that you can check response.
Re: Using FrSky S6R with ersky9x
Well, then it should be somewhere in the model settings. Perhaps, an item in the 'Protocol' section that gets you to the corresponding menu.
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Using FrSky S6R with ersky9x
I've put a test version of ersky9x on the first post. The S6R menu is UP LONG, then LEFT twice.
Make sure you have the S6R powered on and bound to the Tx.
In the menu, use DOWN and UP to select the item you wish to view/edit (they are not all there yet). The value will show as "-----". Press MENU SHORT and the value will be requested from the S6R. If the value doesn't appear after a second or so, try MENU again.
Once the value is present, you may edit it. MENU LONG will then write the value to the S6R.
This may not be the best method, but it seems to at least work. I'm open to suggestions for improvement. Note that fetching a value from the S6R does take some time, so trying to read all the values could take a long time.
For now, I'd like to know if this much is working and useable. I've only tested the 9XR-PRO as I don't have any diodes fitted on SKY/AR9X boards (yet).
Note that these test versions also include the use of trim switches in places where any switch might be used. There is an automatic mechanism in place for these. If no mix is active with a trim included, and the trim value is not being used as a GVAR source, then the relevant trim switches will not change the trim value.
Mike.
Make sure you have the S6R powered on and bound to the Tx.
In the menu, use DOWN and UP to select the item you wish to view/edit (they are not all there yet). The value will show as "-----". Press MENU SHORT and the value will be requested from the S6R. If the value doesn't appear after a second or so, try MENU again.
Once the value is present, you may edit it. MENU LONG will then write the value to the S6R.
This may not be the best method, but it seems to at least work. I'm open to suggestions for improvement. Note that fetching a value from the S6R does take some time, so trying to read all the values could take a long time.
For now, I'd like to know if this much is working and useable. I've only tested the 9XR-PRO as I don't have any diodes fitted on SKY/AR9X boards (yet).
Note that these test versions also include the use of trim switches in places where any switch might be used. There is an automatic mechanism in place for these. If no mix is active with a trim included, and the trim value is not being used as a GVAR source, then the relevant trim switches will not change the trim value.
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: Using FrSky S6R with ersky9x
I'll try the test version on my AR9x tonight, and will post back.
I didn't get the point regarding trim switches. If no mix uses certain trim switch and that switch is not part of GVAR, shouldn't it act as a regular trim switch - i.e. change the trim value as usual?
I didn't get the point regarding trim switches. If no mix uses certain trim switch and that switch is not part of GVAR, shouldn't it act as a regular trim switch - i.e. change the trim value as usual?
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Using FrSky S6R with ersky9x
There are 8 trim switches, that might just be considered as 8 push buttons. If you don't need a particular trim (e.g. throttle trim on an electric 'plane), then why not have the two trim switches available for some other purpose? That is what the change is about. By stopping the trim switches from changing the trim value, you both stop the beeps you get and also stop scheduling an EEPROM write that is needed when you change a trim value.
If the trim value is not being used, why have the trim switches change it?
Mike.
If the trim value is not being used, why have the trim switches change 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: Using FrSky S6R with ersky9x
Wait, wait... I understand the idea and I think it's great. But I think I'm missing something essential here.
By-default, when we create a new model, the trim switches work "the usual way". Do you mean there is a mix for them already in place? I'm far from being an expert in ER9x, so I never saw it...
By-default, when we create a new model, the trim switches work "the usual way". Do you mean there is a mix for them already in place? I'm far from being an expert in ER9x, so I never saw it...
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Using FrSky S6R with ersky9x
The basic 4 mixes on a newly created model (Ail, Ele, Thr, Rud) have their trims included by default. There is an option in the mixes "Include Trim" that is enabled. You would have to disable that.
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: Using FrSky S6R with ersky9x
Ah, now I got it!
Will try to test the trims as well, if I have enough time tonight.
Will try to test the trims as well, if I have enough time tonight.
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Using FrSky S6R with ersky9x
Early testing at present, but I now have this working on the 9Xtreme and the Taranis, so , if anyone else has a S6R, and wants to test configuring it using either of these transmitters, I'll post test versions for them.
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: Using FrSky S6R with ersky9x
Ok, I'm on the test version now.
Something works - I mean, I can fetch the details from the S6R. There seem to be a minor cosmetics issue with "Ail2 Dir." and "Ele2 Dir.": the value "Ail S" is aligned to the left, while the value "Invers" is in the middle (same as other values). But that's not important, really.
I can also store new values, although right now it doesn't feel like this works reliably. I mean, I change the value and hold Menu for a couple of seconds. Then I go to another parameter and return back to the changed one. I re-read the value and sometimes a new one is stored, sometimes it's still an old one. Maybe I need to hold Menu longer, but I'm not sure.
Sometimes the communication gets lost. I can't even fetch existing values. Maybe it's S6R that is not responding - I'm not sure. The numbers in the bottom of the screen read "0000 0087 0064". Sometimes it starts working again when I scroll through several parameters.
Something works - I mean, I can fetch the details from the S6R. There seem to be a minor cosmetics issue with "Ail2 Dir." and "Ele2 Dir.": the value "Ail S" is aligned to the left, while the value "Invers" is in the middle (same as other values). But that's not important, really.
I can also store new values, although right now it doesn't feel like this works reliably. I mean, I change the value and hold Menu for a couple of seconds. Then I go to another parameter and return back to the changed one. I re-read the value and sometimes a new one is stored, sometimes it's still an old one. Maybe I need to hold Menu longer, but I'm not sure.
Sometimes the communication gets lost. I can't even fetch existing values. Maybe it's S6R that is not responding - I'm not sure. The numbers in the bottom of the screen read "0000 0087 0064". Sometimes it starts working again when I scroll through several parameters.
Re: Using FrSky S6R with ersky9x
Offtopic: What does "F1 E1" mean in the Bootloader mode? Is it "All Ok", or speaks about some issue?
For some reason, when I connect my radio to the PC, I can't access the SDcard. I get the drive letter in Explorer, but I cannot open the disk ("Please insert a disk into Removable Disk"). This radio with this particular SD card used to work just fine previously. And the SD card works well when inserted directly into the PC.
For some reason, when I connect my radio to the PC, I can't access the SDcard. I get the drive letter in Explorer, but I cannot open the disk ("Please insert a disk into Removable Disk"). This radio with this particular SD card used to work just fine previously. And the SD card works well when inserted directly into the PC.
Re: Using FrSky S6R with ersky9x
Thinking of the usability...
I think all of the parameters need to be listed on the screen (or grouped in several screens). It would be best to have a parameter and its value at the same line (just like we currently have in other menus). Short press of "Menu" on a parameter should fetch its value from the S6R. Then the parameter can be changed and new value stored in the S6R with a "Menu Long".
It would also be good to have an option to fetch all values for the parameters displayed on the screen. Yes, it'll take some time, but if the information will be updated from top to bottom, line by line, the user will see something is happening and will wait accordingly.
I think all of the parameters need to be listed on the screen (or grouped in several screens). It would be best to have a parameter and its value at the same line (just like we currently have in other menus). Short press of "Menu" on a parameter should fetch its value from the S6R. Then the parameter can be changed and new value stored in the S6R with a "Menu Long".
It would also be good to have an option to fetch all values for the parameters displayed on the screen. Yes, it'll take some time, but if the information will be updated from top to bottom, line by line, the user will see something is happening and will wait accordingly.
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Using FrSky S6R with ersky9x
I noticed sometimes it doesn't respond to requests when pressing MENU. Just testing on a Taranis and a 9Xtreme, they seem much more reliable, responding every time. I'll investigate to see what is the difference.
F1 and E1 in the bootloader relate to the Flash and Eeprom being protected from writing. They may be ignored.
What revision of the bootloader are you running? I'm using 2.0, and can access the SD card (8Gb) from the PC with no problems.
I put the parameter on the next line as the description and value didn't always fit on a single line.
Mike.
F1 and E1 in the bootloader relate to the Flash and Eeprom being protected from writing. They may be ignored.
What revision of the bootloader are you running? I'm using 2.0, and can access the SD card (8Gb) from the PC with no problems.
I put the parameter on the next line as the description and value didn't always fit on a single line.
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: Using FrSky S6R with ersky9x
Hmm, that's interesting...MikeB wrote:I noticed sometimes it doesn't respond to requests when pressing MENU. Just testing on a Taranis and a 9Xtreme, they seem much more reliable, responding every time.
I believe I used to have F1 and E0 in the bootloader screen before I updated it from the S6R beta firmware. I had no issues accessing SD card before the update. The bootloader now reports version 2.1. Unfortunately, I don't remember which version I had before (though, I suppose it was the same 2.1).F1 and E1 in the bootloader relate to the Flash and Eeprom being protected from writing. They may be ignored.
What revision of the bootloader are you running? I'm using 2.0, and can access the SD card (8Gb) from the PC with no problems.
If there's no simple way to reduce some words to fit a single line, I think it's fine to keep it on two lines.I put the parameter on the next line as the description and value didn't always fit on a single line.
Another option could be to just list the parameters, and the values will be open on a new screen. But then there is no easy way to view all the values on one screen - people will have to click every parameter one by one just to see existing configuration...
Thanks!!!
Re: Using FrSky S6R with ersky9x
Update regarding the bootloader and SD-card: I think my issue may have been related to something within Windows rather than to the radio itself. I rebooted my PC this morning, and I can access SD-card in the radio again.
I apologize for the false alarm!
I apologize for the false alarm!
Re: Using FrSky S6R with ersky9x
Do you have a Turnigy computer?
João
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
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
Re: Using FrSky S6R with ersky9x
Come on! Unlike a PC with Windows, Turnigy with ER9x is much more reliable and doesn't need reboots! It just works properly all the time!
Re: Using FrSky S6R with ersky9x
You are absolutely right and I totally agree
Just make sure your Turnigy PC is not running Flysky OS
João
Just make sure your Turnigy PC is not running Flysky OS
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Using FrSky S6R with ersky9x
How do you update the firmware? If you use the bootloader, and flash from eepskye, then the bootloader is not updated.
If you use STM DFU and zadig, then the bootloader is updated.
Mike.
If you use STM DFU and zadig, then the bootloader is updated.
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: Using FrSky S6R with ersky9x
I use bootloader and update firmware via eepskye. Then I copy the firmware file to SD, start the radio in Maintenance mode and update the Bootloader from there.
Anyway, the bootloader v2.1 works fine for me now. As I said, I suspect it was Windows that caused SD card access issues yesterday.
Anyway, the bootloader v2.1 works fine for me now. As I said, I suspect it was Windows that caused SD card access issues yesterday.