I'm having an issue with pcanfdtst under both driver releases 8.4.0 and 8.5.1. In general, things work pretty well, but when I try to use bit rate shifting with certain baud rates, things fail badly - hanging the pcanfdtst program at best and sometimes even rebooting my arm Linux box.
Here's my setup. I'm using two PCAN USB FD devices, both upgraded to the latest firmware (3.2.0). One is in a Windows 10 box running PCAN-View 4.2.1.533. The other is connected to an i.MX286 Arm family processor, running kernel 2.6.35. I've tried both of the above releases of the drivers built with only USB device and MODVERSIONS support and tried them with and without debug as well. The two interfaces are connected by a 6ft terminated cable, also from Peak.
If I try some combinations of nominal and data bitrates, things work well. For example 1M/4M:
pcanfdtest rx --fd -b 1M -d 4M -c 40M /dev/pcanusbfd32
works great.
However, if I try some other bit rate combinations (500K/2M has been particularly problematic at any clock speed), I can't receive any messages that include bit rate shifts. All other messages (standard or extended 2.0 messages, FD messages with long payloads) work correctly. Best case when I send a message from PCAN-View with a bit rate shift, it runs up through the error states and takes PCAN View offline without seeing any of the messages on the Linux box - worst case it crashes the Linux box completely.
I was concerned it might be something with my i.MX286 build, but I have seen similar behavior running 8.5.1 on an Intel NUC under Ubuntu 14.04.
I haven't tried writing my own applications to test this yet - I was hoping to verify that everything worked first with pcanfdtst.
Any ideas would be appreciated.
PCANUSB-FD Driver and Certain Baud Rates
- S.Grosjean
- Software Development
- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Re: PCANUSB-FD Driver and Certain Baud Rates
Hello,
Next version of pcan includes some fixes around bitrates and clocks specifications.
Could you contact us by e-mail (linux@peak-system.com) with Subject= this topic subject.
We will send you a beta version of next 8.6 to check whether you always had those troubles.
Regards,
Stéphane
Next version of pcan includes some fixes around bitrates and clocks specifications.
Could you contact us by e-mail (linux@peak-system.com) with Subject= this topic subject.
We will send you a beta version of next 8.6 to check whether you always had those troubles.
Regards,
Stéphane
— Stéphane