Search found 3 matches

by NinaAlexandra
Thu 14. May 2020, 10:26
Forum: Linux
Topic: Intermittent sending of CAN frames
Replies: 5
Views: 5022

Re: Intermittent sending of CAN frames

Yes, I soldered the terminator adapter (short cable with a 120Ω resistor between the data lines) myself, and tried it with and without.
The baudrate (500k) seems good, since I can dump the traffic on the bus once it is active (blinking green in that case).
No, the CAN node on the other end is not ...
by NinaAlexandra
Wed 13. May 2020, 16:26
Forum: Linux
Topic: Intermittent sending of CAN frames
Replies: 5
Views: 5022

Re: Intermittent sending of CAN frames

I'm using the mainline driver.
Both with cangen and my program, the led blinks red. According to the manual this tells me there is some kind of error.
Any hints of how debug this, and find out what kind of error I'm dealing with?
by NinaAlexandra
Mon 11. May 2020, 14:14
Forum: Linux
Topic: Intermittent sending of CAN frames
Replies: 5
Views: 5022

Intermittent sending of CAN frames

Hi, I'm trying to write a software that sends periodic CAN messages in C++.

I've opened the CAN-Socket in this way:

if ((s = socket(PF_CAN, SOCK_RAW, CAN_RAW)) < 0) {
perror("CanSend: Error while opening socket");
exit(-1);
}

strcpy(ifr.ifr_name, ifname.c_str());
ioctl(s, SIOCGIFINDEX, &ifr ...