vectorgrp / XCPlite

Simple implementation of the ASAM XCP on Ethernet protocol
MIT License
163 stars 88 forks source link

Possibility using virtual address #44

Closed truecarfield closed 7 months ago

truecarfield commented 9 months ago

Currently I'm trying to use virtual address (e.g. 0x0, 0x1, 0x2, ...) for measurement signals in A2L. For example I have 3 signals out1, out2, out3 defined as following:

/begin MEASUREMENT out1 "" FLOAT64_IEEE NO_COMPU_METHOD 0 0 -1E12 1E12 ECU_ADDRESS 0x0
  /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA
/end MEASUREMENT
/begin MEASUREMENT out2 "" SLONG NO_COMPU_METHOD 0 0 -2147483648 2147483647 ECU_ADDRESS 0x1
  /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA
/end MEASUREMENT
/begin MEASUREMENT out3 "" UWORD NO_COMPU_METHOD 0 0 0 65535 ECU_ADDRESS 0x2
  /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA
/end MEASUREMENT

In this case CANape just give me for that DAQ event one ODT entry with 8 bytes, can I somehow modify CANape settings so that it can give me one ODT entry with 8+4+2=14 bytes or three entries with their individual sizes?

OliverKitt commented 9 months ago

Hello,

you have to change the following expert setting of your XCP device to “yes”: @.***

Regards, Oliver

From: truecarfield @.> Sent: Tuesday, December 5, 2023 1:49 PM To: vectorgrp/XCPlite @.> Cc: Subscribed @.***> Subject: [vectorgrp/XCPlite] Possibility using virtual address (Issue #44)

Currently I'm trying to use virtual address (e.g. 0x0, 0x1, 0x2, ...) for measurement signals in A2L. For example I have 3 signals out1, out2, out3 defined as following:

/begin MEASUREMENT out1 "" FLOAT64_IEEE NO_COMPU_METHOD 0 0 -1E12 1E12 ECU_ADDRESS 3 ECU_ADDRESS_EXTENSION 0 /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA /end MEASUREMENT /begin MEASUREMENT out2 "" SLONG NO_COMPU_METHOD 0 0 -2147483648 2147483647 ECU_ADDRESS 4 ECU_ADDRESS_EXTENSION 0 /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA /end MEASUREMENT /begin MEASUREMENT out3 "" UWORD NO_COMPU_METHOD 0 0 0 65535 ECU_ADDRESS 5 ECU_ADDRESS_EXTENSION 0 /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA /end MEASUREMENT

In this case CANape just give me one ODT entry with 8 bytes, can I somehow modify CANape settings so that it can give me an ODT entry with 8+4+2=14 bytes?

— Reply to this email directly, view it on GitHubhttps://github.com/vectorgrp/XCPlite/issues/44, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATCCY7ZUGF2DY44NUHLIGELYH4J3ZAVCNFSM6AAAAABAHUFRPGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDMMJSGAZDIOI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

truecarfield commented 9 months ago

Hello, you have to change the following expert setting of your XCP device to “yes”: @. Regards, Oliver From: truecarfield @.> Sent: Tuesday, December 5, 2023 1:49 PM To: vectorgrp/XCPlite @.> Cc: Subscribed @.> Subject: [vectorgrp/XCPlite] Possibility using virtual address (Issue #44) Currently I'm trying to use virtual address (e.g. 0x0, 0x1, 0x2, ...) for measurement signals in A2L. For example I have 3 signals out1, out2, out3 defined as following: /begin MEASUREMENT out1 "" FLOAT64_IEEE NO_COMPU_METHOD 0 0 -1E12 1E12 ECU_ADDRESS 3 ECU_ADDRESS_EXTENSION 0 /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA /end MEASUREMENT /begin MEASUREMENT out2 "" SLONG NO_COMPU_METHOD 0 0 -2147483648 2147483647 ECU_ADDRESS 4 ECU_ADDRESS_EXTENSION 0 /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA /end MEASUREMENT /begin MEASUREMENT out3 "" UWORD NO_COMPU_METHOD 0 0 0 65535 ECU_ADDRESS 5 ECU_ADDRESS_EXTENSION 0 /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA /end MEASUREMENT In this case CANape just give me one ODT entry with 8 bytes, can I somehow modify CANape settings so that it can give me an ODT entry with 8+4+2=14 bytes? — Reply to this email directly, view it on GitHub<#44>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATCCY7ZUGF2DY44NUHLIGELYH4J3ZAVCNFSM6AAAAABAHUFRPGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDMMJSGAZDIOI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Hello Oliver,

thanks for the quick reply, which expert settings you mean?

best regards

OliverKitt commented 9 months ago

Hello,

It seems that my screen shot has got lost.

Please navigate to the device (dialog device configuration). Then in the hierarchy

+ Protocol + DAQ List Then, on the right side, open the tab “expert settings” and under “General”, switch ODT_ENTRY_ADDRESS_OPT_DISABLED to yes. Regards, Oliver From: truecarfield ***@***.***> Sent: Tuesday, December 5, 2023 2:47 PM To: vectorgrp/XCPlite ***@***.***> Cc: Kitt, Oliver ***@***.***>; Comment ***@***.***> Subject: Re: [vectorgrp/XCPlite] Possibility using virtual address (Issue #44) Hello, you have to change the following expert setting of your XCP device to “yes”: @.*** Regards, Oliver From: truecarfield @.> Sent: Tuesday, December 5, 2023 1:49 PM To: vectorgrp/XCPlite @.> Cc: Subscribed @.> Subject: [vectorgrp/XCPlite] Possibility using virtual address (Issue #44) Currently I'm trying to use virtual address (e.g. 0x0, 0x1, 0x2, ...) for measurement signals in A2L. For example I have 3 signals out1, out2, out3 defined as following: /begin MEASUREMENT out1 "" FLOAT64_IEEE NO_COMPU_METHOD 0 0 -1E12 1E12 ECU_ADDRESS 3 ECU_ADDRESS_EXTENSION 0 /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA /end MEASUREMENT /begin MEASUREMENT out2 "" SLONG NO_COMPU_METHOD 0 0 -2147483648 2147483647 ECU_ADDRESS 4 ECU_ADDRESS_EXTENSION 0 /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA /end MEASUREMENT /begin MEASUREMENT out3 "" UWORD NO_COMPU_METHOD 0 0 0 65535 ECU_ADDRESS 5 ECU_ADDRESS_EXTENSION 0 /begin IF_DATA XCP /begin DAQ_EVENT FIXED_EVENT_LIST EVENT 0x0 /end DAQ_EVENT /end IF_DATA /end MEASUREMENT In this case CANape just give me one ODT entry with 8 bytes, can I somehow modify CANape settings so that it can give me an ODT entry with 8+4+2=14 bytes? — Reply to this email directly, view it on GitHub<#44>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATCCY7ZUGF2DY44NUHLIGELYH4J3ZAVCNFSM6AAAAABAHUFRPGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDMMJSGAZDIOI. You are receiving this because you are subscribed to this thread.Message ID: @.> Hello Oliver, thanks for the quick reply, which expert settings you mean? best regards — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: ***@***.***>