SavvyCAN icon indicating copy to clipboard operation
SavvyCAN copied to clipboard

Timestamp is always 0

Open FliFro opened this issue 1 year ago • 13 comments

The timestamp in the main window shows always '0', or, depending on settings, the corresponding System Time Jan-01 etc. When I use CANgaroo to capture CAN messages, the timestamps are OK.

The problem did not occur on first installation, but after i played around with the settings. I was unable to get it back to working. Even deleting the entire SavvyCAN folder and re-downloading the release didn't help. (Since the programm doesn't install in the classic way - where does it store the settings?)

V213, Windows 11 SLCAN devices (CANable 2.0)

image

FliFro avatar Aug 27 '24 05:08 FliFro

There is a configuration file saved. On Windows it should be in your user directory under AppData/Local/SavvyCAN I think.

This is a reference to the standard file locations for QT apps: https://doc.qt.io/qt-5/qstandardpaths.html

collin80 avatar Aug 28 '24 01:08 collin80

Thanks for the quick reply! Found the .ini file at: AppData\Roaming\EVTV\SavvyCAN.ini, renamed it and started from scratch. Unfortunately, this didn't solve the issue - timestamps are still 0.

For now, I can do what I need to do with python and cantools, but you might want to look into that one anyways.

Keep up the good work!

FliFro avatar Aug 28 '24 01:08 FliFro

image this will solve ur problem Recording with Time Stamp File → Preference→ Time Keeping → Select system clock → back → Use Start Continuous logging → Check for Red LOGGING Text Blinking on main window . if u follow dees steps wen the logging it self u'll be able to see time stamp in log file csv or txt

Puneeth-kmp avatar Sep 07 '24 15:09 Puneeth-kmp

I have exactly the same problem, system time stamp worked the first time I selected it.

Running windows 7, Canable 2.0 standard firmware.

Non of the time stamps work, I've deleted the ini file and started again but still nothing.

System clock in the logger window just says Jan-01 00:00:00.000

And if I pick seconds, micro,mill its just 0.0000 etc

threepotMR2 avatar Jan 28 '25 13:01 threepotMR2

image this will solve ur problem Recording with Time Stamp File → Preference→ Time Keeping → Select system clock → back → Use Start Continuous logging → Check for Red LOGGING Text Blinking on main window . if u follow dees steps wen the logging it self u'll be able to see time stamp in log file csv or txt

Unfortunately, that didn't help. Timestamps are always zero in log files, too.

Update 2025-02-04: Problem persists

FliFro avatar Feb 04 '25 05:02 FliFro

I installed Linux version with same CAN usb hardware, and then time stamps work! So it has to be a problem with the windos executable.

threepotMR2 avatar Feb 06 '25 19:02 threepotMR2

I'm on NixOS 24.11 using savvycan 213. I tried all four settings under "Time Keeping", but none of them yielded a timestamp other than 0. Also there is https://github.com/collin80/SavvyCAN/issues/878 which seems to have the same problem.

wucke13 avatar Mar 25 '25 14:03 wucke13

EDIT: does not work


Use absolute time in decoded CSV output is not present in the windows UI, maybe you wanna try editing .ini and set

TimeClock=true
CSVAbsTime=true

because of https://github.com/collin80/SavvyCAN/blob/226628582d4440ba6bb4d1633634c4f454dd573d/mainwindow.cpp#L1401

and

https://github.com/collin80/SavvyCAN/blob/226628582d4440ba6bb4d1633634c4f454dd573d/connections/canconmanager.cpp#L31

anegrin avatar Mar 26 '25 09:03 anegrin

can anyone give this build a try:

https://github.com/anegrin/SavvyCAN/releases

it's windows only, this is the PR https://github.com/anegrin/SavvyCAN/pull/1

if it works a will open it on collin80/SavvyCAN after restoring workflow

anegrin avatar Mar 27 '25 08:03 anegrin

this PR https://github.com/anegrin/SavvyCAN/pull/1 kinda works: time is now progressing even if starting form 1970 (not clear why)

build for windows: https://github.com/anegrin/SavvyCAN/actions/runs/14147302974/artifacts/2844521081 build for linux: https://github.com/anegrin/SavvyCAN/actions/runs/14147302974/artifacts/2844517386

you can check them in this action: https://github.com/anegrin/SavvyCAN/actions/runs/14147302974 (while osx is still pending at the time of writing this)

builds will expire in a couple of weeks

opening PR to main repo...

anegrin avatar Mar 29 '25 16:03 anegrin

FIXING PR https://github.com/collin80/SavvyCAN/pull/909

anegrin avatar Mar 29 '25 17:03 anegrin

pre-release for win and linux https://github.com/anegrin/SavvyCAN/releases/tag/PR-909-pre-release

anegrin avatar Mar 30 '25 13:03 anegrin

PR has been merged https://github.com/collin80/SavvyCAN/pull/909

anegrin avatar May 06 '25 08:05 anegrin