EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: rattnallen on June 08, 2017, 10:15:32 pm

Title: Keysight 3000T CAN symbolic decode issue
Post by: rattnallen on June 08, 2017, 10:15:32 pm
I'm unable to get signed integers work with CAN symbolig decoding on Keysight MSO-X 3000T.
When decoding a signed integer value, decoded value only shows negative values.
Positive values is decoded as the value 0.

I modified the ABS part in the .dbc-file from Keysight's Application Note 'Debug Automotive Designs Faster with CAN-dbc Symbolic Trigger and Decode' to show two 16bits and four 8bits signed integer values and used the CAN training signal to demonstrate the issue.

The 8 byte CAN message 08 50 51 D2 53 11 53 95 should give the values below but shows 0 for the positive values:
P1: 08 50 = 0x5008 = 20488
P2: 51 D2 = 0xD251 = -11695
P3: 53 = 0x53 = 83
P4: 11 = 0x11 = 17
P5: 53 = 0x53 = 83
P6: 95 = 0x95 = -107

Bug?
Any comments?


Modified .dbc-file:

BO_ 2190911837 EngineData: 5 EngineData
 SG_ Fuel : 8|8@1+ (0.01,12) [0|12] "gal" Gateway
 SG_ Temp : 24|8@1+ (0.2,135) [-50|150] "C" Gateway
 SG_ Speed : 32|8@1+ (0.1,2900) [0|8000] "rpm" Gateway

BO_ 189 ABS: 8 Brakes
 SG_ P1 : 0|16@1- (1,0) [-32768|32767] "psi" Gateway
 SG_ P2 : 16|16@1- (1,0) [-32768|32767] "psi" Gateway
 SG_ P3 : 32|8@1- (1,0) [-128|127] "psi" Gateway
 SG_ P4 : 40|8@1- (1,0) [-128|127] "psi" Gateway
 SG_ P5 : 48|8@1- (1,0) [-128|127] "psi" Gateway
 SG_ P6 : 56|8@1- (1,0) [-128|127] "psi" Gateway

 
BO_ 127 Airbag: 1 Emergency
 SG_ Frwd-impact : 7|1@1+ (1,0) [0|1] "" Gateway
 SG_ Rear-impact : 6|1@1+ (1,0) [0|1] "" Gateway
 SG_ Left-impact : 2|1@1+ (1,0) [0|1] "" Gateway
 SG_ Right-impact : 0|1@1+ (1,0) [0|1] "" Gateway

BO_ 000 Steering: 4 Steering

  SG_ Lock : 20|1@1+ (1,0) [0|1] "" Gateway
  SG_ Angle : 24|8@1+ (0.03,45) [0|48] "deg" Gateway

 
CM_ "CAN communication matrix for power train electronics
*******************************************************

implemented: turn lights, warning ligts, windows";

VAL_ 127 Frwd-impact 0 "Deployed" 1 "Armed" ;
VAL_ 127 Rear-impact 0 "Deployed" 1 "Armed" ;
VAL_ 127 Left-impact 0 "Deployed" 1 "Armed" ;
VAL_ 127 Right-impact 0 "Deployed" 1 "Armed" ;
VAL_ 000 Lock 0 "On" 1 "Off" ;