Diagnostic Log and Trace (DLT) Discussion List
View all threadsHi Jacek,
I hoped someone from Viewer side replies to your message. So please see this message more as "resend" than answer to your question because I am not familiar with the viewer code enough.
Best regards
Christoph Lipka
Engineering System & Architecture (ADITG/ESA)
Tel. +49 5121 49 6945
-----Original Message-----
From: genivi-diagnostic-log-and-trace <genivi-diagnostic-log-and-trace-
bounces@lists.genivi.org> On Behalf Of Wywrót Jacek via genivi-diagnostic-
log-and-trace
Sent: Mittwoch, 9. Januar 2019 13:44
To: genivi-diagnostic-log-and-trace@lists.genivi.org
Subject: [genivi-dlt] Question regarding modifying time / timestamp of Log
message
Hello guys,
I have a question regarding possibility of modifying time/timestamp of Log
messages.
What I try to do is create some plugin for adjusting time of messages.
I import dlt stream, and then only timestamps of messages are valid (I
assume that time of messages in file is created basing on time they has been
imported).
But the idea is to parse all the logs against logs with Time syncronization (and
setup correct time of frames basing on real time).
The time sync logs are sent with constant interval, so using the date and time
from logs I could update the time of logs.
I generally try to be able to modify the time of frames basing on sync points,
real time of sync points and timestamp of frames.
Then I would want to load log from another MCU containing real time, and
sort messages by time to have correct relations of logs for both MCUs.
I tried with creating control plugin to be able to read all messages in the
imported file.
I used initFileFinish function to process all messages and obtain all sync points
for time.
At this point I can construct hashmap containing real time for each frame, but
I'm unable to update the messages to the correct time.
So I tried to implement also decoder plugin interface, to be able to modify
messages passed in decodeMsg (mofify the time).
Unfortunately in decodeMsg function I have no information about the
message index, to be able to update message time repectively to real time
information.
So maybe someone could advice some solution for that kind of approach.
--
Pozdrawiam / Kind Regards
Jacek Wywrot
M.Sc. Eng.
Senior Software Engineer
Development Centre
Car Infotainment
Bury Sp. z o.o.
ul. Wspolna 2A
35-205 Rzeszow
Intern.:3467
Tel: +48 (0) 17 773 87 67
Fax: +48 (0) 17 773 88 01
Mobile: +48 (0) 663 85 01 45
E-Mail: Jacek.Wywrot@bury.commailto:Jacek.Wywrot@bury.com
wywrot@bury.commailto:wywrot@bury.com
Internet: http://www.bury.com
W związku z wejściem w życie przepisów Ogólnego Rozporządzenia o
Ochronie Danych Osobowych (tzw. RODO), BURY Sp. z o.o. z siedzibą w
Mielcu, spełniając swój ustawowy obowiązek, umożliwia Państwu
zapoznanie się z informacjami dotyczącymi przetwarzania Państwa danych
osobowych przez BURY Sp. z o.o.
Podstawowe informacje:
Following the entry into force of the General Data Protection Regulation (so-
called GDPR), BURY Sp. z o.o. based in Mielec, fulfilling its statutory duty,
enables you to become familiar with the information concerning the
processing of your personal data by BURY Sp. z o.o.
Basic information:
genivi-diagnostic-log-and-trace mailing list genivi-diagnostic-log-and-
trace@lists.genivi.org
http://lists.genivi.org/mailman/listinfo/genivi-diagnostic-log-and-
trace_lists.genivi.org
Hello all,
I have yet another though related question. I would like to create plugin which would help me to see
missing log messages.
Currently we face some issue, and some logs being sent over UART, are dropped either in the device, DLT viewer or in FTDI serial-to-usb adapter.
This is probably because lots of messages are sent at 500kbit/s.
So the plugin is supposed to check message "count" value (messageCounter field in qdltmsg), and compare with the previous message in the file.
I would like to see some feedback on log when I[n] - I[n-1] != 1 (of course considering the counter/ overturns with 255 to zero).
So if following logs are visible:
7677 2019/01/21 09:51:02.762564 0.0320 9 NFCB FBAP N/A 0 log info verbose 1 13 ********************************************************
7679 2019/01/21 09:51:02.763540 0.0360 11 NFCB FBAP N/A 0 log info verbose 1 15 RESFR: |0x200|POWUP|
With index 9, an the following has index 11 I would like to see the log coloured red (so maybe the plugin could switch subtype to DltLogWarn or DltLogError)
So I imagine I could implement QDLTPluginDecoderInterface and ::isMsg/ ::decodeMsg functions.
In function I would like to, at certain condition, change log subtype, but basing on the previous message.
Is that possible to access the n-1 message somehow, maybe combining with some other plugin types,
and modify QDltMsg parameters?
Kind Regards
Jacek Wywrót
W dniu 16.01.2019 o 08:59, Lipka, Christoph (ADITG/ESA) pisze:
Hi Jacek,
I hoped someone from Viewer side replies to your message. So please see this message more as "resend" than answer to your question because I am not familiar with the viewer code enough.
Best regards
Christoph Lipka
Engineering System & Architecture (ADITG/ESA)
Tel. +49 5121 49 6945
-----Original Message-----
From: genivi-diagnostic-log-and-trace <genivi-diagnostic-log-and-trace-
bounces@lists.genivi.orgmailto:bounces@lists.genivi.org> On Behalf Of Wywrót Jacek via genivi-diagnostic-
log-and-trace
Sent: Mittwoch, 9. Januar 2019 13:44
To: genivi-diagnostic-log-and-trace@lists.genivi.orgmailto:genivi-diagnostic-log-and-trace@lists.genivi.org
Subject: [genivi-dlt] Question regarding modifying time / timestamp of Log
message
Hello guys,
I have a question regarding possibility of modifying time/timestamp of Log
messages.
What I try to do is create some plugin for adjusting time of messages.
I import dlt stream, and then only timestamps of messages are valid (I
assume that time of messages in file is created basing on time they has been
imported).
But the idea is to parse all the logs against logs with Time syncronization (and
setup correct time of frames basing on real time).
The time sync logs are sent with constant interval, so using the date and time
from logs I could update the time of logs.
I generally try to be able to modify the time of frames basing on sync points,
real time of sync points and timestamp of frames.
Then I would want to load log from another MCU containing real time, and
sort messages by time to have correct relations of logs for both MCUs.
I tried with creating control plugin to be able to read all messages in the
imported file.
I used initFileFinish function to process all messages and obtain all sync points
for time.
At this point I can construct hashmap containing real time for each frame, but
I'm unable to update the messages to the correct time.
So I tried to implement also decoder plugin interface, to be able to modify
messages passed in decodeMsg (mofify the time).
Unfortunately in decodeMsg function I have no information about the
message index, to be able to update message time repectively to real time
information.
So maybe someone could advice some solution for that kind of approach.
--
Pozdrawiam / Kind Regards
Jacek Wywrot
M.Sc. Eng.
Senior Software Engineer
Development Centre
Car Infotainment
Bury Sp. z o.o.
ul. Wspolna 2A
35-205 Rzeszow
Intern.:3467
Tel: +48 (0) 17 773 87 67
Fax: +48 (0) 17 773 88 01
Mobile: +48 (0) 663 85 01 45
E-Mail: Jacek.Wywrot@bury.commailto:Jacek.Wywrot@bury.commailto:Jacek.Wywrot@bury.commailto:Jacek.Wywrot@bury.com
wywrot@bury.commailto:wywrot@bury.commailto:wywrot@bury.commailto:wywrot@bury.com
Internet: http://www.bury.com
W związku z wejściem w życie przepisów Ogólnego Rozporządzenia o
Ochronie Danych Osobowych (tzw. RODO), BURY Sp. z o.o. z siedzibą w
Mielcu, spełniając swój ustawowy obowiązek, umożliwia Państwu
zapoznanie się z informacjami dotyczącymi przetwarzania Państwa danych
osobowych przez BURY Sp. z o.o.
Podstawowe informacje:
Following the entry into force of the General Data Protection Regulation (so-
called GDPR), BURY Sp. z o.o. based in Mielec, fulfilling its statutory duty,
enables you to become familiar with the information concerning the
processing of your personal data by BURY Sp. z o.o.
Basic information:
genivi-diagnostic-log-and-trace mailing list genivi-diagnostic-log-and-
trace@lists.genivi.orgmailto:trace@lists.genivi.org
http://lists.genivi.org/mailman/listinfo/genivi-diagnostic-log-and-
trace_lists.genivi.org
W związku z wejściem w życie przepisów Ogólnego Rozporządzenia o Ochronie Danych Osobowych (tzw. RODO), BURY Sp. z o.o. z siedzibą w Mielcu, spełniając swój ustawowy obowiązek, umożliwia Państwu zapoznanie się z informacjami dotyczącymi przetwarzania Państwa danych osobowych przez BURY Sp. z o.o.
Podstawowe informacje:
Following the entry into force of the General Data Protection Regulation (so-called GDPR), BURY Sp. z o.o. based in Mielec, fulfilling its statutory duty, enables you to become familiar with the information concerning the processing of your personal data by BURY Sp. z o.o.
Basic information: