Thank you for your response, it was very useful.
I solved the issue by adding
CAN_Uninitialize(PcanHandle);
before
status = CAN_Initialize(PcanHandle, Bitrate);
within the loop.
But now after a couple plug-ins and plug-outs, I'm having https://forum.peak-system.com/viewtopic.php?f=7&t=7924 ...
Search found 5 matches
- Tue 25. Mar 2025, 10:51
- Forum: PCAN-USB
- Topic: Finding Correct PCAN-Basic PCAN handle value for Linux
- Replies: 3
- Views: 9674
- Thu 20. Mar 2025, 09:17
- Forum: PCAN-USB
- Topic: Finding Correct PCAN-Basic PCAN handle value for Linux
- Replies: 3
- Views: 9674
Finding Correct PCAN-Basic PCAN handle value for Linux
Hi,
I have the following piece of code that works well on Windows 10 and Windows 11 intel x86 machines. It basically checks whether the PCAN-USB device is connected.
On Debian/Linux intel x86, I'm having the following output most of the time when I plug out and then replug the PCAN-USB.
The ...
I have the following piece of code that works well on Windows 10 and Windows 11 intel x86 machines. It basically checks whether the PCAN-USB device is connected.
On Debian/Linux intel x86, I'm having the following output most of the time when I plug out and then replug the PCAN-USB.
The ...
- Thu 20. Mar 2025, 07:55
- Forum: PCAN-USB
- Topic: Peak chardev driver on Linux stops reading abruptly
- Replies: 4
- Views: 22356
Re: Peak chardev driver on Linux stops reading abruptly
The problem seems to be solved but I have no idea how. I am not able to reproduce it. And I don't think I have made any configuration changes.
Thank you for your support
Edit: Please keep the post for a while in case if it occurs again
Thank you for your support
Edit: Please keep the post for a while in case if it occurs again
- Tue 18. Mar 2025, 07:37
- Forum: PCAN-USB
- Topic: Peak chardev driver on Linux stops reading abruptly
- Replies: 4
- Views: 22356
Re: Peak chardev driver on Linux stops reading abruptly
Here is the PCAN-View description of the device at hand
PCAN-USB_at_hand.png
Here is cat /proc/pcan output before any read operation, after powering the Debian/Linux (intel x86) computer with aforementioned PCAN-USB attached.
before.png
Here is cat /proc/pcan output after read operation ...
PCAN-USB_at_hand.png
Here is cat /proc/pcan output before any read operation, after powering the Debian/Linux (intel x86) computer with aforementioned PCAN-USB attached.
before.png
Here is cat /proc/pcan output after read operation ...
- Mon 17. Mar 2025, 12:15
- Forum: PCAN-USB
- Topic: Peak chardev driver on Linux stops reading abruptly
- Replies: 4
- Views: 22356
Peak chardev driver on Linux stops reading abruptly
Hi,
I have an application based on PCAN-Basic API. The application runs without any problems on Windows 10 and Windows 11. I'm trying to port it to debian Linux.
I installed the chardev peak driver, following the instructions in the README within the package. When I try to run RX examples, they ...
I have an application based on PCAN-Basic API. The application runs without any problems on Windows 10 and Windows 11. I'm trying to port it to debian Linux.
I installed the chardev peak driver, following the instructions in the README within the package. When I try to run RX examples, they ...