Page 1 of 1
RC Track intermittently freezes while driving
Posted: Sat Aug 27, 2022 6:20 pm
by GTIspirit
I don't know if I have a defective RC Track device, or if the whole USB connection to Raspberry Pi just isn't reliable. The display always seems to freeze on me while driving. Always seems to happen within about 40 to 50mins of driving. Logs attached, though I don't know how helpful they are since they don't seem to have timestamps to find the event which aligns when the RC Track froze.
You can see that it froze at 12:49:16.
It's not the RPi App itself, as the touchscreen is still responsive and I can go into the system menu. It's the RC Track itself which seems to freeze. It's always done this, no matter the version of the RPi App or the version of the RC Track firmware.
Here's my unit.
Re: RC Track intermittently freezes while driving
Posted: Wed Aug 31, 2022 11:03 am
by GTIspirit
No, it's not the wiring because if I don't touch anything, and just power cycle the unit then it's fine, for a little while. But if I reboot the RPi app the connection is not restored. This is why I think the problem is actually with the RC Track device itself.
Re: RC Track intermittently freezes while driving
Posted: Thu Sep 08, 2022 6:12 pm
by brentp
Does it happen if your laptop is connected to the unit via USB for an extended period of time? You should be able to test that scenario pretty easily in the garage.
The RaceCapture hardware is very robust against hanging - we have a hardware watchdog that reboots the unit in case there is a firmware crash.
Re: RC Track intermittently freezes while driving
Posted: Thu Sep 22, 2022 10:59 pm
by GTIspirit
It has nothing to do with a laptop being connected. The dash values froze after idling the car for a few minutes in the garage, not even while driving. Just the RCTrack Mk2 and the RasPi dash. The Raspberry Pi app is fine, it's still responsive. The dash values freeze, as in the RC Track freezes. Screenshot shows it froze at 17:38:03. And yes, when it freezes everything stop updating, not only the CAN values but also the UTC clock.
Doesn't appear to be anything related to the USB connection because if I cycle the power without touching the USB then everything is fine. And it can't be CAN, because then the UTC clock would keep working. That's why I'm suspecting the RC Track itself.
Re: RC Track intermittently freezes while driving
Posted: Mon Sep 26, 2022 8:43 pm
by brentp
Do the values also freeze if connected via laptop, bluetooth to Android, or WiFi to Android or iOS? (does it freeze on those devices)
When the values freeze, do you see any flashing red LEDs on the unit?
Re: RC Track intermittently freezes while driving
Posted: Mon Oct 03, 2022 10:20 pm
by GTIspirit
Yes, when it freezes there is a flashing red light on the housing of the RC Track Mk2. This time when it happened I removed the mini USB from the RC Track and re-inserted it. That triggered the RasPi to re-initialize the connection and data resumed, for a short while until it happened again.
Doesn't seem like it's temperature or vibration related, as the place where it's mounted doesn't really get very warm at all. And the vibration at idle is no worse than driving down the highway. I wonder if it has something to do with interference at the autocross site, because it most frequently seems to occur right at staging in front of the start line. When I'm near timing and PA equipment. (Though I did see it happen in the garage, it's just infrequent in the garage, and practically 100% at autocross start line staging.) Maybe I should wrap my RCTrack in tinfoil.
Seems like there is an additional robustness improvement potential here. If the App sees that the UTC time hasn't updated in X amount of time it could try to re-initialize the USB connection.
Re: RC Track intermittently freezes while driving
Posted: Wed Oct 12, 2022 1:57 pm
by brentp
The red flash is an indicator that the USB connection is dropping for some reason. This is due to an intermittent electrical connection, likely vibration related. If you haven't tried it yet, you can switch to a different USB cable. You can also try switching to WiFi connection, just as a comparison / debug approach.
Re: RC Track intermittently freezes while driving
Posted: Tue Nov 08, 2022 9:53 pm
by GTIspirit
@brentp strange thing is, after it loses connection, it's usually restored with a power cycle of the RasPi dash and RC Track. Meaning, I don't touch the connection. This is why I suggested an improvement opportunity to periodically attempt connection re-initialization when the RasPi senses that UTC time stops changing. Because, UTC time comes from the GPS engine on the RC Track. A stale UTC would signify dropped connection.
Sure, I'll try enabling WiFi, but there isn't much instruction here. The RasPi dash how-to only mentions the hardwire connection. When I try first time setup on the RasPi dash there is only the option for USB, no option for WiFi.
I tried on my iPhone using the RC App v2.5.0 and it only have the option for WiFi, but just hangs "Waiting for connection" and doesn't connect. Yes, the iPhone is connected to the RCTrack Mk2 device in the iPhone Wi-Fi general settings.
Re: RC Track intermittently freezes while driving
Posted: Tue Jan 10, 2023 3:36 pm
by brentp
Hi,
Double check under wireless that Wifi is enabled and the access point is configured. At worst, you can do a factory reset, (save your config file first) and then that sets the WiFi into default access point mode.
With the Raspberry Pi, do you not see the WiFi connection option under Application settings?