Giter VIP home page Giter VIP logo

Comments (13)

buzz53 avatar buzz53 commented on August 16, 2024

Looking at this a bit more, it seems that the behaviour would be consistent with the unit executing a "Save settings and reboot" via the web interface. This causes Reset Reason = 12. I have now added a non-volatile counter to increment and display whenever this restart code executes, so will soon know for certain. But how can this be happening? On my early flights I had a browser on my tablet running to monitor the status, so you could perhaps imagine something odd happening, but I'm 99% sure that on later flights, and especially yesterday, there was no browser active, just SkyDemon.

from softrf.

buzz53 avatar buzz53 commented on August 16, 2024

Oops, didn't mean to close the issue.

from softrf.

lyusupov avatar lyusupov commented on August 16, 2024

Alan, despite all the SoftRF units are more or less equal - almost every client's environment (a set of installed applications) is different. Your case is not first one where client's software is suspected to abuse SoftRF operation. Inspect your tablet on presence of any web apps which may cache and then make an attempt to re-sync (in background) all the web pages that you've recently accessed in your browser.

Other options could be:

  • use another tablet, it would be best if it has factory configuration with minimum built-in apps except your SkyDemon ;
  • use Bluetooth (if able) instead of the Wi-FI to connect your SkyDemon over NMEA or GDL90 (valid for current SoftRF GitHub source code).

from softrf.

Tjeerdm avatar Tjeerdm commented on August 16, 2024

There is a memory leak in Hex2Bin which is called for every received packet in ParseData.
It allocates an object of type String which is never de-allocated.
When receiving one packet every second the system reboots after some 70 minutes. (freertos calls abort())
Moving the line fo.raw = Hex2Bin(...) inside the next block fixes it as long as nmea_p is not set.

from softrf.

lyusupov avatar lyusupov commented on August 16, 2024

@Tjeerdm
In order to detect any memory leaks, WebUI status page has "Free memory" field.
When a leak happens - the value gradually decreases over the time.
Please, provide a sequence of screenshots (taken at, say, 10 minutes interval) where I could see the free memory value. And specify conditions when the screenshots had been taken at.
It would be nice if you will turn "Private" messages on and capture the log of serial data output (at 38400 baud) all the way from boot down to the self-restart.
There could be some RF noise sources nearby that floods the SoftRF input.
I don't see the leak you've mentioned in my testing environment. But I can admit that this could happen under certain curcumstances.

from softrf.

lyusupov avatar lyusupov commented on August 16, 2024

You either provide proper reproducing instructions or close this ticket, please.

I see no issues in my 24 hours stress test with average 14 packets per second Rx ratio of "legacy" traffic.
I also did not notice any memory leaks there.

24hrs_stats

from softrf.

buzz53 avatar buzz53 commented on August 16, 2024

I'm sorry for the delay but I have been working away from home. I did agree that the most likely cause was accidental triggering of the "Save and reboot" function, so I added a diagnostic to increment a counter when this happens. This works correctly when testing: if I deliberately request a "Save and reboot" then my diagnostics show this counter has incremented and the "Reset Reason" given is 12. I spent a long time trying to make this happen accidentally, logging in and out with the browser, running my second unit as a target etc etc. but it worked perfectly for 48 hours.

Today I finally went flying again. I made sure that my phone was in flight mode and there was no browser active on my tablet. It was connected over WiFi to Skydemon using GDL90. The SoftRF worked for about 15 minutes (and received genuine PAW targets). Then without warning it rebooted, showing Reset Reason = 12 but the "Save and reboot" counter had not changed. This happened about 6 or 7 times in my 40 minutes flying. As I said before I'm sure it is not a power issue (it's using a battery) and there is no vibration. It is very strange and I'm not sure what to try next. I think I will try disabling things until it works correctly.

Alan

from softrf.

lyusupov avatar lyusupov commented on August 16, 2024

@buzz53

Alan, if I would face with the situation that you have, I would:

  1. at first, try to find a way to reproduce the reboot on the ground (say, on your homebase airport), near PAW devices, OGN-R ground stations and other RF noise sources ;
  2. after that, I would switch SoftRF onto some other RF protocol and frequency (with littlle or no traffic, say, OGNTP) to see if the issue is P3I protocol-specific ;
  3. if the issue remains active regardless of protocol setting, I would switch from Wi-Fi connection onto USB cable (or Bluetooth) to see if the issue is associated with SoftRF's Wi-Fi AP operation.

from softrf.

buzz53 avatar buzz53 commented on August 16, 2024

Hi Linar, thanks for the suggestions. I had previously found the same problem with both legacy and P3I protocols. Here's some more information after two flights today. I set P3I protocol (there are very few legacy targets at this time of year). I turned off Bluetooth, NMEA, GDL90 and Dump1090 outputs. I set my phone and tablet to flight mode. In other words there was no onboard connection to the SoftRF at all, I monitored only the OLED.

We received a few dozen P3I packets but after about 20 minutes it rebooted as usual, and did so another three times. The second flight was just the same. Back home, it is working perfectly of course! Next time I propose to fit a dummy load in place of the antenna.
Alan

from softrf.

buzz53 avatar buzz53 commented on August 16, 2024

More experiments! I flew today firstly with my own SoftRF but this time with a dummy load on the 868 MHz antenna. As before, there was no WiFi or Bluetooth connection. Same result as before: it rebooted 3 times in 20 minutes. I then collected two new T-beam units which had just been delivered to a friend, and operated one of those on the flight home. This time it was set for legacy mode and I connected using GDL90 from Skydemon. Once again, it rebooted at least three times in a short flight. That's now three units that behave the same. A common factor is that all of these tests have been in the same aircraft although I can't see how that would matter. I do have a mode C transponder but the antenna is external and well away from the SoftRF. Next flight I will try to use a different aircraft but meantime it would be nice to hear from anyone who has actually done any flight tests of this hardware. ideally in a powered aircraft at 150 kts.
Alan

from softrf.

lyusupov avatar lyusupov commented on August 16, 2024

@buzz53
Alan, more than 60 of the T-Beam boards were delivered to UK pilots and aviators since June last year.
I suppose you guys can create a community somewhere like uk.rec.aviation.soaring newsgroup or FLYER forum. You could meet, discuss and resolve this issue locally. Then, please, share the results here, with other 300+ SoftRF users worldwide.

GitHub tickets does not seem to be the best way to discuss general topics, like particular EMI cases.
You may consider to switch onto SoftRF's Gitter channel instead.
The link ( a "badge" like this one Join the chat at https://gitter.im/lyusupov/SoftRF ) is on the topmost page of the SoftRF project's github site.
Feel yourself free to invite other UK pilots (SoftRF users) on this channel.

from softrf.

buzz53 avatar buzz53 commented on August 16, 2024

Linar, I agree this is not the best place, but I did not know about Gitter. I'll try there.
Thanks again, Alan

from softrf.

lyusupov avatar lyusupov commented on August 16, 2024

@buzz53

Alan,

Same result as before: it rebooted 3 times in 20 minutes...

< ... skipped ... >

... it would be nice to hear from anyone who has actually done any flight tests of this hardware. ideally in a powered aircraft at 150 kts

See the pictures below.

Resolution: unable to reproduce.


t43-1
t43-2
t43-3
t43-4

from softrf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.