-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set CAN Bus not working with PCANUSB #1
Comments
Hi @jarvjani, Thanks for the report, we'll take a look. Best regards, |
Hi @jarvjani, Thanks for your report. |
Hey, Here are the files i am using, and seems to be working on both windows 10 and windows 7. |
Hi @jarvjani, Sorry for the delay, we have never tested on Windows and considered to do it. Can you create a Pull Request on github to contribute your patch? Best regards, |
Hi @jarvjani, Please, create a Pull Request on github for review. Best regards, |
@jarvjani How to send CAN raw data 11 bit identifier default it was in 29 bit identifier. Where i have to change Normal fixed 11bit identifier for CAN raw data???Can u please help me for above topic |
Hey,
Curf.py: in set_can both self.bus and self.logbus are trying to initialize to same device. This is not possible, and will result as an error when trying to connect logbus.
I removed all the logging and got it working:
-modification in curf.py
def set_can(self, interface, channel, bitrate, db=None, test_name=None):
""" Set the CAN BUS
Keyword arguments:
interface -- can interface (socketcan, vector, ...)
channel -- can channel (can0, vcan0, ...)
bitrate -- can bitrate (125000, 500000, ...)
db -- can database (arxml,dbc,kcd,sym,cdd)
test_name -- Name of test case
-modification to curf.robot
Stop CAN Bus
Stop Bus
-My can.robot test file, located outside CURF folder
*** Settings ***
Resource ./CURF/keywords/curf.robot
Test Setup Set CAN Bus ${INTERFACE} ${CHANNEL} ${BITRATE} ${DB FILE}
Test Teardown Stop CAN Bus
Library DateTime
*** Variables ***
${DB FILE} ./CURF/dbc/example.dbc
${INTERFACE} pcan
${CHANNEL} PCAN_USBBUS1
${BITRATE} 250000
${DEFAULT TIMEOUT} 3000
${DEFAULT NODE} DRIVER
*** Test Cases ***
Send a CAN frame
Send Frame With ID 0x5D3 And DEADBEEF As Data
Send a given signal
Send Signal SENSOR_SONARS_err_count With Value 0
-Proof it works:
The text was updated successfully, but these errors were encountered: