Skip to content

Closing the CAN connection #2

@sabih1982

Description

@sabih1982

Hello, I am using data driver to read DID's from CSV file with CURF, but soon after 32 connection i start getting

VectorError: xlGetChannelIndex failed (XL_ERR_HW_NOT_PRESENT)

which i believe is because of set can bus at the start of every test setup and not closing the channel. I am enclosing my code below. Please help.

`*** Settings ***
Documentation Theses test cases are to check the valid responses for the ECU Identification
Resource ../keywords/curf.robot
Resource ../keywords/UDS_Variables.robot

Test Setup Set CAN Bus ${INTERFACE} ${CHANNEL} ${BITRATE} ${DB FILE}
Test Teardown End Log Can

Library DateTime
Library DataDriver ../data/Service_22_ECU_Identification.csv

Test Template ReportDID_22

*** Variables ***

*** Test Cases ***
Log ReadDataByIdentifier_ECU_Identification_${RDI_22} ${RDI_22}

*** Keywords ***
ReportDID_22
[Arguments] ${RDI_22}
Set ISOTP Protocol ${SOURCE} ${DESTINATION} ${ADDRESSING MODE}
${RES} = Report DID ${RDI_22}
Log ${RES}`

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions