Waring: v2.0 is not reliable

More
03 Dec 2012 02:08 #3533 by suvsuv
Waring: v2.0 is not reliable was created by suvsuv
I got 2 reports that using v2.0 caused reboot during flying, one is in devo8s with Ladybug, and the other is in devo10 with RX802, . I have no idea what is the reason yet, but I suspect it related to telemetry. So I would suggest to recall the v2.0 from the download link.

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 07:55 #3538 by FDR
Replied by FDR on topic Waring: v2.0 is not reliable
I've put a warning on the download page...

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 09:46 #3540 by sbstnp
Replied by sbstnp on topic Waring: v2.0 is not reliable
I used it with an RX802 for a while and had no issues. Maybe it is setup specific? Do we have the conditions in which this reboot occurs?

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 09:54 #3541 by FDR
Replied by FDR on topic Waring: v2.0 is not reliable
I can make it to reboot while configuring: for example keep changing the tx power quickly up and down, and it will restart within one or two rounds, but it flies without issue for me too...

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 10:00 #3542 by NewJocker
Replied by NewJocker on topic Waring: v2.0 is not reliable
reboot once when playing with limits.

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 10:49 #3543 by FDR
Replied by FDR on topic Waring: v2.0 is not reliable

FDR wrote: I can make it to reboot while configuring: for example keep changing the tx power quickly up and down, and it will restart within one or two rounds, but it flies without issue for me too...


I've increased the watchdog timer to 2000ms from 1000ms, and while it was much harder to make it restart, it still happened...

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 11:21 #3544 by Hexperience
Replied by Hexperience on topic Waring: v2.0 is not reliable
Changing the watchdog only effected the tx power issue though right? We don't know for sure it would have any effect on the reboot while flying issue?

There are 10 types of people in this world. Those that understand binary and those that don't.

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 11:59 #3550 by FDR
Replied by FDR on topic Waring: v2.0 is not reliable
The restart is almost certainly started by the watchdog, but it shouldn't happen. It means there was no event loop or screen refresh in a whole second. That's a sign of some error in the code...

Prolonging the watchdog interval gives more tolerance to a possibly long process, but cannot solve an infinite loop...

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 12:34 - 03 Dec 2012 12:36 #3556 by suvsuv
Replied by suvsuv on topic Waring: v2.0 is not reliable
The 2 users all say that the reboots happen during flying and the TX are in the main-page, so it is not a configure or TX power issue.
By checking one of the user's model config, I don't see anything wrong .

If reboot happens in configuring, it is not very hard to debug and fix, otherwise, it will be very hard to predict its root-cause
Last edit: 03 Dec 2012 12:36 by suvsuv.

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 14:21 #3563 by PhracturedBlue
Replied by PhracturedBlue on topic Waring: v2.0 is not reliable
The big change for 2.0 (with regards to stability) is the movement of the mixer evaluation to the interrupt handler. While it is also possible that telemetry is causing the issues, it seems unlikely to me mainly due to there being no loops in that code. If the model were losing connection to the tx, that would be more likely to be a telemetry issue I think.
Interrupts can be tricky things. you need to be sure that no place do you depend on a value not having changed while you are working on it. Effectively it is just like threaded programming.

In this case we actually have 3 different interrupt levels:
level 1: the mixer
level 2: the radio
level 3: the msec increment

level 1 interrupts the main loop, level 2 interrupts level 1 and the main loop, and level 3 interrupts level 1 and 2 and the main loop.

level 1 is new to Version 2.0.
Also, the main loop (where the watchdog is) is now triggered by level 1 as opposed to running constantly.

If the time it takes to process level 1 + 2 + 3 is greater than average time between interrupts, than the main loop will never fire and you'll get a reboot.
Note that the time to process level 1 is related to the number of available mixers, though it should still not be a bottleneck. The time itself is deterministic, but the overlap of the 3 interrupts is not.
Every transmitter should behave exactly the same way, so it would be helpful to get model files that cause the issue.

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 14:36 #3566 by FDR
Replied by FDR on topic Waring: v2.0 is not reliable
You can reproduce the reboot with constantly changing the tx power even in the defult empty model config...

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 14:52 #3570 by suvsuv
Replied by suvsuv on topic Waring: v2.0 is not reliable

FDR wrote: You can reproduce the reboot with constantly changing the tx power even in the defult empty model config...

The reboot caused by tx-power should be a confirmed bug. Though I have no idea its underline root cause, I don't believe this issue is related to the TX reboot during flying

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 14:55 #3571 by suvsuv
Replied by suvsuv on topic Waring: v2.0 is not reliable

PhracturedBlue wrote:
Every transmitter should behave exactly the same way, so it would be helpful to get model files that cause the issue.

I got a model ini file from one of the bug reporters. Please take a look at it.
Attachments:

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 15:01 - 03 Dec 2012 16:39 #3572 by FDR
Replied by FDR on topic Waring: v2.0 is not reliable
Probable, but I'm not sure about that.
Reboot happens with simple mixer tweaking too, it's just easier to reproduce with the tx power.
The cause might pretty much be the same....
Last edit: 03 Dec 2012 16:39 by FDR. Reason: typo

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 15:02 #3573 by Tom Z
Replied by Tom Z on topic Waring: v2.0 is not reliable
If a model was used or created in the version 2.0 firmware and expoted to another transmitter will the bug be in there or is the bug just in the firmware itself?


PhracturedBlue, sent you a PM.

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 15:06 #3574 by FDR
Replied by FDR on topic Waring: v2.0 is not reliable
No, it's definitely in the fw...
The model.ini is a plain text file.

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 15:09 #3575 by dado099
Replied by dado099 on topic Waring: v2.0 is not reliable
I can confirm that Reboot happens with simple mixer tweaking too. :ohmy:

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 16:39 #3578 by PhracturedBlue
Replied by PhracturedBlue on topic Waring: v2.0 is not reliable
Obviously this is my top priority now. I will spend some time trying to root-cause

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 19:31 #3587 by MatCat
Replied by MatCat on topic Waring: v2.0 is not reliable
I posted the issue about rebooting when editing mixing settings on the issue tracker a few days ago, though personally I have yet to see it happen otherwise... I am using a complex mix too.

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 20:11 #3589 by rototophe
Replied by rototophe on topic Waring: v2.0 is not reliable
I too experienced a reboot while changing values on a complex mixer.
Was adjusting DSM2 Nano config and the Tx rebooted during that process.
Occurred only once.

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum