Problem on DM1 and DM2

Hiroto miyazaki
Posts: 11
Joined: Mon Sep 17, 2012 9:18 pm

Problem on DM1 and DM2

Post by Hiroto miyazaki » Tue Feb 21, 2017 7:29 pm

I have a problem on the messages of DM1 and DM2.
Even if there are the messages on DTC Setup tab、some appears, others does't.
I don't know what's the difference between them.
Please tell me how to solve the problem.

Examples in case of DM2 are below.

Massages appears:SPN3 FMI2,SPN1 FMI10,SPN3 FMI8,SPN1 FMI8
Massages not appears:SPN231 FMI5,SPN254 FMI8,SPN231 FMI6
DM2_screen.JPG
DM2 screen
DM2_screen.JPG (96.71 KiB) Viewed 123 times
DTCsetup1.jpg
DTC setup tab1
DTCsetup1.jpg (50.58 KiB) Viewed 123 times
DTCsetup2.jpg
DTC setup tab2
DTCsetup2.jpg (81.28 KiB) Viewed 123 times
My environment:
・PV Studio:V2.8.10546
・Configuration:Based on Standard PV780
・Windows:win7(64bit,service pack1)

Regards,
Hiroto
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Problem on DM1 and DM2

Post by boyce » Wed Feb 22, 2017 8:53 am

Can you Private Message your configuration to me so that I can use it to test?
Boyce Schrack
Enovation Controls
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Problem on DM1 and DM2

Post by boyce » Thu Feb 23, 2017 2:46 pm

Good news, we found the problem. The reserved strings used by the Diagnostic Messages application were too small. Change the DM1.Header.Description, DM2.Header.Description, DM2.Table.Description.1, etc. Length from 128 to 512.
Capture.JPG
Capture.JPG (81.66 KiB) Viewed 105 times
Boyce Schrack
Enovation Controls
Hiroto miyazaki
Posts: 11
Joined: Mon Sep 17, 2012 9:18 pm

Re: Problem on DM1 and DM2

Post by Hiroto miyazaki » Thu Feb 23, 2017 6:51 pm

Hello,

Thank you for your quick response.
I'll try it and report the result later.

:My primitive question
Ex.
Message of SPN3FMI2 is much longer then that of SPN231SPN5.
The former appears, the latter does't.Why?

See you later.
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Problem on DM1 and DM2

Post by boyce » Fri Feb 24, 2017 8:42 am

It is probably because the string was being truncated within a multi-byte character code and that caused it to ignore the entire line.
Boyce Schrack
Enovation Controls
Hiroto miyazaki
Posts: 11
Joined: Mon Sep 17, 2012 9:18 pm

Re: Problem on DM1 and DM2

Post by Hiroto miyazaki » Mon Apr 24, 2017 1:35 am

Hello,

I tried changing length from 128 to 512.
It works very well.

Thanks a lot.