www.8devices.com
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Sending Canframes with error flag
Author |
Message |
Frangenheim_Sts
Joined: 13 Apr 2017, 12:15 Posts: 1
|
- I am using two USB-To_Can-adapters (can0, can1) physically connected - I am using linux I do - cansend can0 20000001#00
1) candump can0,0:0,#FFFFFFFF -> can0 20000001 [1] 00 ERRORFRAME
2) candump can1,0:0,#FFFFFFFF -> can1 001 [1] 00
-> The error Flag is missing!
- I have set up the interfaces with 1) ip link set can0 down 2) ip link set can0 up type can bitrate 5000000 3) ifconfig can0 up
- Using own C++ Code I also missing the error flags (using soc = socket(PF_CAN, SOCK_RAW, CAN_RAW); can_err_mask_t err_mask = CAN_ERR_MASK; setsockopt(soc, SOL_CAN_RAW, CAN_RAW_ERR_FILTER,&err_mask, sizeof(err_mask));)
My question: Error error flag only generated when detection bus errors and not transmitted or received when setting the corresponding bit of the Can-Di (bit30)? Is there a way via socket can options or by firmware settings to enable transmitted or received error flags inside the can id.
|
13 Apr 2017, 12:34 |
|
|
gerardas
Joined: 14 Apr 2017, 08:21 Posts: 1
|
|
14 Apr 2017, 08:58 |
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|