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

NV14 with ExpressLRS Status error #2091

Closed
1 task done
zandorsp opened this issue Jun 24, 2022 · 35 comments
Closed
1 task done

NV14 with ExpressLRS Status error #2091

zandorsp opened this issue Jun 24, 2022 · 35 comments
Labels
bug 🪲 Something isn't working
Milestone

Comments

@zandorsp
Copy link
Contributor

Is there an existing issue for this problem?

  • I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

When using the NV14 with external ExpressLRS module the status reports constantly errors

Expected Behavior

The number of error don´t change

Steps To Reproduce

1 - Connect an external ExpressLRS module
2 - Create/Select a model with CRFS external module
3 - See the status

Version

2.7.1

Transmitter

FlySky NV14

Anything else?

Dwkg08_07700b6fa70b34929166e075928547da_00-00-00_00-00-05_2

@zandorsp zandorsp added bug 🪲 Something isn't working triage Bug report awaiting review / sorting labels Jun 24, 2022
@zandorsp
Copy link
Contributor Author

If a change the baudrate to 115K , for exemple, the error persists

@pfeerick
Copy link
Member

pfeerick commented Jul 3, 2022

As in, it keeps incrementing when you switched to 115k, or that the number remains (you may also have noticed the hz dropped value dropped oddly also)? I would not go above 400k on the NV14 as I don't think the inverters on it are fast enough to do anything higher (reliably, that is). 921k seems mostly stable, but still has somewhat intermittent incrementing handset -> module error count so I wouldn't use it myself without a GPS failsafe recovery system.

You may need to disconnect and reconnect the module after changing the baud rate so that the module re-detects the new baud rate as while the module is automatically power cycled, it seems that some ELRS modules have enough capacitance to stay partially powered during the reset cycle.

@pfeerick pfeerick removed triage Bug report awaiting review / sorting bug 🪲 Something isn't working labels Jul 3, 2022
@Neukom720
Copy link

NV14 edgetx 2.7.1 - yep i just battled with the same problem! Doesn't matter the baud rate, the errors just continuously go up with the baudrate just changing how quickly the errors increase, 115k-400k-921k-1.87k all work and I can access the elrs LUA script but the errors just start building up faster and faster as you increase the baud rate, at 1.87k the error is going up 100 every second! 3.75M and 5.25M don't even work and looses connection with the elrs module. Also the elrs Lua script reports 0/50 or zero out of whatever refresh rate your using which is strange because you think it would be dropping frames ya know. Just Flew on 400k using elrs Happymodel ES900tx@50hz and flew fine but it was just a long flight no fast moves or around anything. Both my Happymodel 2.4ghz elrs and my Full size Crossfire 2watt module has the same outcome. Any ideas? Its worry some...thanks guys as always for any help you can give us NV14 boyzzzz haha

@Neukom720
Copy link

@pfeerick tried pulling the module out after changing baud rate, same outcome. As soon as you plug it back in the error count just continues right on going up....ill try to help troubleshoot if you guys have any other ideas

@pfeerick
Copy link
Member

pfeerick commented Jul 5, 2022

Also the elrs Lua script reports 0/50 or zero out of whatever refresh rate your using which is strange because you think it would be dropping frames ya know.

Unfortunately that's not how it works... these are the errors between the handset and the module - which is usually because the speed is pushed beyond what the radio hardware can operate at. It's not related to the control link between the module/transmitter and receiver. So you can have 100% module link/spot on hz rate (i.e. the Bad/Good indicator at the top shows 0/%SET-HZ-RATE%, and errors on the handset side, and as long as it's a slow creep, because of the data rates we are talking about, they would never propagate through anyway. It's just something to be concerned about until the exact cause can be pinned down... i.e. if the inverters on that particular handset are slow, that's all good and fine... at least it won't get any worse... and you have the possibility of replacing them.

I'm using 2.4 ELRS, but do have some 900Mhz ELRS so will try that to see if there is any difference...

@Neukom720
Copy link

@pfeerick tried all my modules, all do the errors, doesn't matter what, my happymodel elrs 2.4ghz and 900mhz, my Ghost Lite flashed to elrs using jr bay adapter, my full size 2watt crossfire, my r9m lite pro on elrs using a jr bay adapter, all do the error thing at whatever baud rate you choose, just trying to save you time on trying different modules cause its def radio side. Also tried elrs v3.0.0rc1 and 2.5.8 both same outcome. Haven't used my tx16s in a long time cause I only use it for fixed wing stuff but I'll dust it off and flash edgetx to verify as well.

@raphaelcoeffic
Copy link
Member

raphaelcoeffic commented Jul 5, 2022

The error counter you see is actually accurate, and most of these are so called "Framing Errors":
Screenshot 2022-07-05 at 18 19 34

I believe this happens because there is no pull-down resistor neither on the external radio side nor on the external module side. Please note that this is "inverted UART", so that IDLE is LOW.

That being said, it should be pretty much harmless here, as the errors are only artefacts and do not disturb real payload.

@pfeerick
Copy link
Member

pfeerick commented Jul 6, 2022

Oh, interesting... yeah, that decay on the end would certainly do it, and as you say, is harmless. I'll have to see if that's what I'm getting. Interesting that it doesn't seem to be happening at the lower baud rates as much in mine... maybe I'm not waiting long enough, or this module actually does have a pulldown or some other filtering.

@zandorsp
Copy link
Contributor Author

zandorsp commented Jul 6, 2022

The error counter you see is actually accurate, and most of these are so called "Framing Errors": Screenshot 2022-07-05 at 18 19 34

I believe this happens because there is no pull-down resistor neither on the external radio side nor on the external module side. Please note that this is "inverted UART", so that IDLE is LOW.

That being said, it should be pretty much harmless here, as the errors are only artefacts and do not disturb real payload.

That's means that I need a pull-down resistor on S.PORT line in the radio or in the module?

@raphaelcoeffic
Copy link
Member

raphaelcoeffic commented Jul 6, 2022

That means that I need a pull-down resistor on S.PORT line in the radio or in the module?

Actually it would be better on the MCU side (between MCU and configurable inverter). We're checking the NV14 hardware, as there seems to be some not-connected pads that were meant for a pull-up resistor at the right place. We're trying to sort this out with FlySky at the moment.

@Neukom720
Copy link

This is all pretty interesting, can't wait to see where this goes, I hope we can fix it and I'm glad it is currently harmless so I don't have to worry about dropping out of the sky, thanks guys

@zandorsp
Copy link
Contributor Author

I don't know what you made in the nightly releases, but it's seen to work now without errors increasing in status.

@pfeerick pfeerick added this to the 2.8 milestone Sep 14, 2022
@pfeerick pfeerick added the bug 🪲 Something isn't working label Sep 14, 2022
@pfeerick
Copy link
Member

pfeerick commented Sep 14, 2022

Oh sweet! :) Most likely some changes for the EL18 that also effect the NV14 (but in a good way). Thanks for the update! 🥳

@guimeraalex020
Copy link

Hey, i have the same problem with the nv14, and the updates aren't solving the problem. What version of edgetx and elrs do you had to solve the problem? Thanks
@zandorsp

@macfly1fr
Copy link

macfly1fr commented Dec 17, 2022

Hey, i have the same problem with the nv14, and the updates aren't solving the problem. What version of edgetx and elrs do you had to solve the problem? Thanks @zandorsp

I confirm i have the same issue with all edgetx version. It was not a "real problem" until now when i updated my Tx HappyModel ES24tx 2400 with the latest elrs firmware version 3.1.1 -> when i run elrs's lua script V3 it freeze (in fact it is very very sloowww so unusable ) .
It worked fine (always status error) with all previous elrs firmware (ok with elrs 3.0.1 too ).So i had to flash back to elrs 3.0.1 firmware version in order elrs lua script v3 works again... I suppose this issue is really due to status error continuously of the Nirvana with external module in edgetx.

@guimeraalex020
Copy link

In my case the lua script is working correctly, i don't understand how the lua is communicating correctly but the radio can't without errors

@macfly1fr
Copy link

macfly1fr commented Dec 17, 2022

In my case the lua script is working correctly, i don't understand how the lua is communicating correctly but the radio can't without errors

Your elrs lua script v3 works correctly with a TX module updated with latest elrs "3.1.1" firmware ?

@zandorsp
Copy link
Contributor Author

Hey, i have the same problem with the nv14, and the updates aren't solving the problem. What version of edgetx and elrs do you had to solve the problem? Thanks @zandorsp

I'm now using EdgeTX 2.8.0 with elrs 3.1.1. The status show some errors, but really not like my first post.
photo_2022-12-18_13-56-02

@gagarinlg
Copy link
Member

A few errors are normal, they arise when everything is booting up.

@guimeraalex020
Copy link

I don't have a few, i have a increasing error number

@gagarinlg
Copy link
Member

@guimeraalex020 the few errors zandorsp has are OK.

A slightly increasing error number does not stop the Lua script from working.
Most people seem to get better results with EdgeTX 2.8.0. Which version do you have on your radio?

@guimeraalex020
Copy link

I had 2.7.0 but already upgraded to 2.8.0 and still the same, up to 20.000 errors and increasing.

@rotorman
Copy link
Member

Do the errors disappear or at least lower, when you use lower baudrate? E.g. 400 kBaud?

@guimeraalex020
Copy link

They speed down, but they never stop

@macfly1fr
Copy link

I have the same... errors never stop
My only real issue i that in my case i can't use elrs lua script v3 with module having elrs firmware > 3.0.1

@zandorsp
Copy link
Contributor Author

zandorsp commented Dec 23, 2022

I have the same... errors never stop My only real issue i that in my case i can't use elrs lua script v3 with module having elrs firmware > 3.0.1

My NV14 radio was the pull-up resistor from s.port line removed. I don't know really if that's what causes your problems.
IMG_20221223_152412_371

Reference: https://docs.google.com/document/d/1SRegkGT0wnFcTbT9YFNwIuluz5aupOivjGYq4cDiHjE/edit

@Neukom720
Copy link

They speed down, but they never stop

Yep I still have this problem, acts the same way, accessing the ELRS lua script also gets screwed up in the higher baudrates or doesn't work at all

@Neukom720
Copy link

Has anyone verified that removing the pull up resistor from the s.Port line fixes this issue? I'm totally down to remove it as long as it has no I'll effects and removes this issue

@mmaaddzz
Copy link

I can confirm, after removing that resistor lua script working perfect and errors count is about zero all time.

@Neukom720
Copy link

@mmaaddzz
Thanks man, I'll do that tomorrow and hopefully report back with my success as well!!

@guimeraalex020
Copy link

I did it and now its working!!!!! it was only removing the pull-up resistor

@rotorman
Copy link
Member

The resistor in question would be the same as R14 in publicly available EL18 schem: https://raw.githubusercontent.com/open-flysky/EL18-_OpenSourceMaterial/main/sch/EL18-V1.0%E5%8E%9F%E7%90%86%E5%9B%BE(sch)%E5%8F%8A%E7%82%B9%E4%BD%8D%E5%9B%BE.pdf (on EL18 this resistor is not populated in factory).

In case on NV14, the S.PORT line is similarly routed, looking at the schematic, I wonder why it helps to desolder it. Nevertheless great to hear that this helps to solve it.
@richardclli do you know if NV14 S.PORT schem is different to EL18 or have an idea why removing this pull-up makes a difference?

@macfly1fr
Copy link

I have the same... errors never stop My only real issue i that in my case i can't use elrs lua script v3 with module having elrs firmware > 3.0.1

My NV14 radio was the pull-up resistor from s.port line removed. I don't know really if that's what causes your problems. IMG_20221223_152412_371

Reference: https://docs.google.com/document/d/1SRegkGT0wnFcTbT9YFNwIuluz5aupOivjGYq4cDiHjE/edit

Thank you for the information.
I removed this resistor and.... I confirm all problems are solved.
Error status is now very stable , i don't have any issues with last elrs firmware and lua script.

Thank you everybody for the help.

@OG-ALviK
Copy link

OG-ALviK commented Jan 6, 2023

So, for the NV14 users who are having these tipes of issues, to fix them just remove the resistor?

@zandorsp
Copy link
Contributor Author

zandorsp commented Jan 6, 2023

So, for the NV14 users who are having these tipes of issues, to fix them just remove the resistor?

Yes, that's it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants