Search found 5 matches

by Cluni
Mon 13. Jan 2020, 14:49
Forum: Linux
Topic: How to detect unplugged PCAN-USB?
Replies: 2
Views: 3485

Re: How to detect unplugged PCAN-USB?

Hello Marvin,

thank you very much!

if ((errno == ENETDOWN)...
was the right hint!

I already took a look at the file "candump.h" before, but unfortunately I had an other (older?) version of this file. There wasn't any use of errno...

Now it works like it should! Thanks a lot!

Best regards
Bernd
by Cluni
Mon 13. Jan 2020, 11:36
Forum: Linux
Topic: How to detect unplugged PCAN-USB?
Replies: 2
Views: 3485

How to detect unplugged PCAN-USB?

Hi,

I'm trying to use a PCAN-USB using SocketCAN in cpp under linux. Therefore I'm using a non-blocking read. Now I have the problem that I can't detect, if the PCAN-USB itself is unplugged out of the USB-Port. The read returns a -1 -- doesn't matter if the adapter is unplugged or if there only is ...
by Cluni
Mon 16. Dec 2019, 10:54
Forum: Linux
Topic: HowTo install the peak-linux-driver on a RPI Raspbian image
Replies: 15
Views: 42446

Re: HowTo install the peak-linux-driver on a RPI Raspbian im

Hi Marvin,

big thx for your help. I did a rollback to 4.19.75 by rpi-update. The hint how to do this I found at this website:
https://www.elektronik-kompendium.de/sites/raspberry-pi/2006061.htm

So I was able to rollback with "sudo rpi-update d9321aceacfc6619b4238c6c764203b1122f2f9b"

It seems that ...
by Cluni
Mon 16. Dec 2019, 10:12
Forum: Linux
Topic: HowTo install the peak-linux-driver on a RPI Raspbian image
Replies: 15
Views: 42446

Re: HowTo install the peak-linux-driver on a RPI Raspbian im

Hi Marvin,

thank you for your fast reply. Indeed I did an rpi-update - I can't remember for what reason. I think I tried it to get rid of another problem. Is there a chance to get back? :shock:

Best regards,
Bernd
by Cluni
Mon 16. Dec 2019, 09:28
Forum: Linux
Topic: HowTo install the peak-linux-driver on a RPI Raspbian image
Replies: 15
Views: 42446

Re: HowTo install the peak-linux-driver on a RPI Raspbian im

Good morning,

I have a problem with installing the drivers on my Raspbian Buster (Linux version 4.19.88-v7+). Last week I could follow your instructions and everything was fine - I could connect to my PCAN-USB. Suddenly - I don't know what happened in between - I couldn't connect anymore to the ...