-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Signal polarity different to 2.8.1 for LemonDSP, DSM2 and PPM external modules #3413
Comments
In case you check before I do, for PPM, does changing - to + still work (but basically be reversed to 2.8?) |
Yes, I checked this. +/- works but everything is reversed in 2.9. Same for SBUS normal/inverted. |
Ok, so a walk down all the external modes, 2.9 yesterdays nightly vs 2.8.1, indicates: Inverted:
Unchanged:
Broken?
Saleae Logic 8 captures: |
Correct, confirms my measurements. Please do me a favor while you have the LA hooked up:
|
Sorry, no. Even when doing a 60 second capture and monitoring analog it still seemed clear. Using same 2.9 nightly as before. |
That's alright, just means less work. |
Not sure about external Flysky. It is initialized with |
Leaves PPM and DSM2 as LemonDSMP TX is also initialized as DSM2 (with different frame rate) |
My bad, you are right. 2.8.1 outputs serial data on CPPM for external Flysky, 2.9 doesn't as it seems to initialize the module port for half duplex on SPort. No clue what should be selected. Were there any complaints about external Flysky in 2.8.1? Isn't there a Flysky guy hanging out here? He's probably best to ask. |
No issues that I know of... that is why I'm hoping it's expected change... Looking at you @richardclli 🤭 |
Do external AFHDS3 modules even exist? I only found 2a modules. Edit: Found it: https://www.flysky-cn.com/frm302-canshu-1 says PPM/UART mode |
Patience |
There's the FRM301, FRM302 and FRM303... The FRM301 is the module used in the PL18 series transmitters |
Some information for references:
|
Thanks for that :) Are you able to double-check that the FRM303 is still working with a recent nightly? |
Let me check during weekend. It works in main sometimes ago, but well who knows. |
Confirmed FRM303 still works in 2.9 with EL18. Check with version 1f82724. |
I was using the TX16S for the captures in #3413 (comment), so there could be something different happening there. But as long as it works on the EL18, all good, as it won't work with the TX16S in that mode atm anyway 🤭 |
I see, TX16S use different mappings for Flysky now, and it is not working anyway. And why 2.8 has something, because I hhave tried to make it works in Tx16S, but not tried to do the same thing in 2.9, yet. The Serial API changes in 2.9 need different implementation. |
Ah, that explains it... Thanks Richard :) As long as we know the reason, and it's not a 🐛, the show can go on! 😄 |
Now the FRM303 works in TX16S with a simple mod similar to Access mod. |
I'm not sure atm if #3442 is connected to this issue, so re-opening for now. |
@gagarinlg Sure, but please be aware that this PR can't be verified with just a test on a single radio. The changes made are heavily influenced by the hardware design of the radios (UARTs, inverters, software controllable inverters, GPIO assignment, etc). So I can only contribute a Horus target (TX16s) but to come to a final verdict on this change you'd at least have to get results from NV14 (sw controllable inverters), and some Taranis type radios, e.g. X9D. See also discussion here #3415 (comment) Test results on TX16s with firmware obtained from merge checks of this PR (https://github.com/EdgeTX/edgetx/actions/runs/4777343713?pr=3513): DSM2 init (going from OFF to DSM2): ok DSM2 (for all subtypes LP45, DSM2, DSMX): polarity idle high as in 2.8 -> ok LemonRx DSMP init (going from OFF to LemonRx DSMP): ok LemonRx DSMP: polarity idle high as in 2.8 -> ok PPM (-) going from OFF to PPM -> not ok. This doesn't seem to hurt PPM modules as this only affects the first two or three frames. Yet, it doesn't look right. |
I can re-check that one. And give it a try of side-by-side tests with X9D+. |
Thanks, and before merging we need at least feedback on NV14. |
Is there an existing issue for this problem?
What part of EdgeTX is the focus of this bug?
Transmitter firmware
Current Behavior
The "polarity" of signals sent to external modules LemonDSP, DSM2 and PPM are reversed compared to 2.8.1.
Example DSM2 outgoing signal recorded at CCPM pin of the module bay with 2.8.1 firmware is idle high
![DSM2_2 8 1](https://user-images.githubusercontent.com/5615068/228334774-ac986d30-ce83-44d7-a54a-dac5986dec77.JPG)
with 2.9.1. the signal is idle low
![DSM2_2 9](https://user-images.githubusercontent.com/5615068/228334911-b4061b13-5660-4f2a-bf90-f98eded24e41.JPG)
The same is true for external modules LemonDSP and PPM. At least external DSM2 and LemonDSP modules shouldn't work in 2.9 as of now. I'd ask LemonDSP and DSM2 owners to confirm.
Expected Behavior
Same signal polarity as in 2.8.1
Steps To Reproduce
Version
Nightly (Please give date/commit below)
Transmitter
Radiomaster TX16S / TX16SMK2
Anything else?
Firmware versions used:
The text was updated successfully, but these errors were encountered: