Bus state stays CLOSED, no Messages but no Errors also

This forum covers PCAN-Linux and Linux development issues concerning our products
Locked
Tobias A.
Posts: 2
Joined: Fri 6. Oct 2023, 11:36

Bus state stays CLOSED, no Messages but no Errors also

Post by Tobias A. » Wed 8. May 2024, 16:31

Hello,

I use:
Debian 12
Peak Linux Driver 8.17.0
PCAN-M.2 Card 3.5.7

I have two PC test setups with the described versions, on one PC all is ok and I can use the cards as expected. (OK_Example_1.PNG)
On the other when I want to tx / rx I get no frames but also no error / the driver seams to work (notOK_Example_1.PNG) the bus stays in CLOSED never the less

When I switch the Cards the behavior stays at the notOK PC so I suspect the error in some setting or option I´m not aware of.

Thanks a lot for any hints in advance!
BR
Tobias
Attachments
notOK_Example_1.PNG
notOK_Example_1.PNG (45.51 KiB) Viewed 3300 times
OK_Example_1.PNG
OK_Example_1.PNG (57.84 KiB) Viewed 3300 times

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Bus state stays CLOSED, no Messages but no Errors also

Post by M.Heidemann » Wed 8. May 2024, 17:01

Hello,

This sounds like an IRQ-related behavior, please see the following post:

viewtopic.php?f=218&t=7193

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

Tobias A.
Posts: 2
Joined: Fri 6. Oct 2023, 11:36

Re: Bus state stays CLOSED, no Messages but no Errors also

Post by Tobias A. » Wed 8. May 2024, 18:17

Hello,

your linked post starts out with NETDEV interface,
I forgot to mention I use the Chardev interface, so I want to point out the solution also worked out in that case!
thanks a lot for the quick reply!!!
RB Tobias


here again the solution:

please edit /etc/modprobe.d/pcan.conf and add the red line, to enable MSI support:

# pcan - automatic made entry, begin --------
# if required add options and remove comment
# options pcan type=isa,sp
options pcan fdusemsi=1
install pcan modprobe --ignore-install pcan
# pcan - automatic made entry, end ----------

Reboot your system once to load the driver with that new option.

check that cat /proc/pcan will show differnt IRQs for the card channels and make your test again.

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Bus state stays CLOSED, no Messages but no Errors also

Post by M.Heidemann » Fri 10. May 2024, 13:00

Hello Tobias,

Thank you for letting us know!

Best Regards

Marvin

- Closed -
---
Marvin Heidemann
PEAK-Support Team

Locked