Closed Matheus-Garbelini closed 2 years ago
You can use the API to read the initial time of the record file, and add the relative time to get the absolute time
@XieYY135 Thanks, I'll try the API. However, how can I save the absolute hardware timestamp via TSMaster if FTimeUs does not update absolute time? Does TSMaster receive timestamp via the CAN FD structure? It seems that it's not possible to pass the correct timestamp from CAN frames to TSMaster via FTimeUs.
Hi @XieYY135, any idea if we can use FTimeUs to inform our own hardware timestamp via the API?
Are you developing based on TSMaster API? If it is. Then every time you execute connect command, record current global time as the startup time, and then add ftimeus to startup time will be the target global time
@XieYY135 I'm using TSMaster GUI and miniprogram, not the standalone SDK API. Is there at least a system variable or miniprogram function that can inform us what is the log file path the user specified in the "Bus Logger" window?
For example: Example:
const char *log_path = tslog_get_log_path()
// expected output: "\\vmware-host\Shared Folders\home\can\CAN-Messages\data\cm.blf"
This system var will be available in the next release
Thanks a lot @freshhope . Will close this issue. Will get back on my previous issue with more information which I think can be solved in the next release.
Hi @freshhope, @XieYY135 I'm trying to contact TSMaster team to check for the possibility of a collaboration with our university for a CAN FD/LIN hardware that we are developing in-house. Is there any email that I can reach for collaboration inquiries?
Hello,
We are trying to save frames using absolute unix timestamp instead of relative, which starts from 0. Is it possible to configure somewhere to absolute timestamp or change this after saving the file log via TSmaster SDK?