vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

Sending and Receiving XCP RAW CTO Frames

Last updated: 2019-02-05
Question:

How can I send and receive XCP Raw CTO frames with CASL?

Answer:

With CASL not only diagnostic messages can be sent but also XCP CTOs. Using the standard approach also used with diagnose (using DiagRaw Messages, see example) the user can send XCP commands and access raw data of the responses. The only difference is that the respective device is an XCP device. The following example shows a short script sending a XCP command (0xFF 0x00) from CANape to the ECU and printing the first byte of the response to the write window:

int handle_tx;
int handle_rx;
handle_tx = XCPsim.DiagNewRawMessage(0xFF,0x00); //Building Tx message
handle_rx = XCPsim.DiagSendRequest(handle_tx); //Sending Tx message
//Response is received and accessible via handle_rx

Write("Output is %d", DiagGetRaw(handle_rx, 0)); //Printing first res byte

 
Article Options
2019-02-05
Views: 194
Error(s) occurred processing form.
Please complete all required fields. Fields marked with * are required.