繁体   English   中英

设置目标时出现错误 capl 错误 17-0098

[英]Error capl error 17-0098 while target is set

我正在编写一个 capl 测试用例并在期望测试响应时收到以下错误错误 capl 错误 17-0098,即使我已经定义了目标并且请求已成功发送,它只是 capl 测试似乎在我确保响应时没有捕获的响应正确返回

错误 17-0098 是因为您的诊断请求/响应服务或标识符未在 CDD 中定义。
如果系统响应您发送的请求,您可以忽略它。
这是一个在没有 CDD 的情况下获得响应的示例

on diagRequest yourEcuName.*
{
  diagResponse this resp;
  this.GetPrimitiveData(dataDiag, elcount(dataDiag));
  write("Received diagResponse: 0x%x 0x%x 0x%x", dataDiag[0], dataDiag[1], dataDiag[2]);
  switch(dataDiag[0])
  {
    case 0x22: // modify this for other Diag Service
    write("Received diagResponse Service $22 Read data by identifier");
    break;
    default:
    break;
  }

}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM