Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New AFHDS 2A module/receiver failsafe. #33

Open
gunsmithfiamma opened this issue Dec 3, 2017 · 8 comments
Open

New AFHDS 2A module/receiver failsafe. #33

gunsmithfiamma opened this issue Dec 3, 2017 · 8 comments

Comments

@gunsmithfiamma
Copy link

Hello Mike,
since Flysky/Turnigy finally released a new TX module for AFHDS 2A protocol, is there a possibility to add a Failsafe menu in the firmware?
As you already know, for AFHDS 2A receivers, any failsafe function can be programmed only from the radio.
Er9x works great with the new 9X and AFHDS 2A module , but without failsafe can be dangerous.
Thanks a lot for your hard work.
gunsmithfiamma

@MikeBland
Copy link
Owner

Currently, I have no idea if the AFHDS2A Tx module can send failsafe values.
Since we send the channel data using PPM to the module, I'm not sure we have any way of telling the module what the failsafe values are.
If you have a manual for the module (I don't have such a module), and it details how failsafe may be done, please let me know and I can look inot whether it is possible to add to er9x.

@gunsmithfiamma
Copy link
Author

Sorry for the late answer.
Yes the module can send failsafe values, because in the new firmware of the radio (the one supplied with the AFHDS 2A module) there is a failsafe menu and it works. Since the new firmware is not released at the moment, I used a spare main board for Er9X, so I still have the original board with the original firmware on. I can try to extract the firmware from the board if it will help you.
The set up is very simple: Put the stick/switches/potentiometer in the position you need, go in the failsafe menu and turn on the function on the channel you need the failsafe. img_20171206_215656_risultato

@MikeBland
Copy link
Owner

Yes, please try to extract the firmware from the original main board.

Mike.

@gunsmithfiamma
Copy link
Author

Ok, I managed to extract the hex file from the original board.
I hope that it can be useful.
Cheers
Francesco
TGY9xAFhds2a.hex.zip
P.s.: I'm relatively new to this kind of procedure so, if there is some error, don't get mad :-)

@MikeBland
Copy link
Owner

I've got that OK, but I think I need the stock EEPROM contents as well if it is possible for you to extract that and post it as well.
I have flashed this firmware, and an EEPROM from an original board, and have this running, although it is not easy as my 9X has the telemetry mod so I get the "SWITCH ERROR" at power on and have to short some pins on the programming header to clear it.
I tried using the falisafe menu, but every time I enter the menu, everything says "NOR", even if I change to "F/S and set a value.
I note that the stock firmware has an option of PPM or PCM. I suspect that it may be necessary to use the PCM to the module to get the failsafe function. If this is the case, then it will be necessary to work out what the PCM coding is, and try to add that to er9x, but, if you have a M64 processor, I doubt the extra code will fit.
Even if possible, this won't be a change that can be done quickly or easily.

@gunsmithfiamma
Copy link
Author

gunsmithfiamma commented Dec 8, 2017

Edited, because it was a silly question (Your software have all I needed)
Here is the eeprom from the stock board.
9xAFhds2a-EEPROM.bin.zip
Thanks for the time you are spending on my request.
Best regards
Francesco

@lexrupy
Copy link

lexrupy commented Sep 17, 2019

Hello, any progress on that?
Also I tried to build the er9x firmware on linux, it built notmally, but after a flashed it out the radio doesn´t boot. So I flasshed the last you provided on openrcforuns test page er9xProv822m.zip.
Also my compiled binary does not have the same size in bytes of yours, even with many combinations of compiler directives.

@macem
Copy link

macem commented Jan 18, 2022

it is possible to support this module ? Regards Marcin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants