I am using the linux headers of peak-linux-driver-8.4.0.
When I use OFD_NONBLOCKING flag in pcanfd_open, the receive function will be a pure non-blocking function.
How do I send & receive pcan messages with a fixed timeout?
int fd = pcanfd_open("/dev/pcan32", OFD_BITRATE | OFD_BTR0BTR1 | OFD ...
Search found 3 matches
- Tue 29. Aug 2017, 18:16
- Forum: Linux
- Topic: How to do a pcan2.0 send and receive with a timeout?
- Replies: 1
- Views: 2879
- Mon 28. Aug 2017, 17:59
- Forum: Linux
- Topic: PCAN-USB Pro FD failed to transmit at baud below 1Mbit/s
- Replies: 3
- Views: 4107
Re: PCAN-USB Pro FD failed to transmit at baud below 1Mbit/s
Hello Stéphane,
It worked with the suggestions you gave.
BTW, does the pcanfdtst.c source codes able to work on other PCAN products (PCAN-USB, PCAN-PCI, PCAN-miniPCI, etc)? Or does it only work on PCAN-USB Pro FD?
Also which sample codes do you recommend for coding in c++ Linux that is supports ...
It worked with the suggestions you gave.
BTW, does the pcanfdtst.c source codes able to work on other PCAN products (PCAN-USB, PCAN-PCI, PCAN-miniPCI, etc)? Or does it only work on PCAN-USB Pro FD?
Also which sample codes do you recommend for coding in c++ Linux that is supports ...
- Mon 28. Aug 2017, 15:55
- Forum: Linux
- Topic: PCAN-USB Pro FD failed to transmit at baud below 1Mbit/s
- Replies: 3
- Views: 4107
PCAN-USB Pro FD failed to transmit at baud below 1Mbit/s
Setup Environment:
OS: Ubuntu 14.04 (64bit)
Driver: peak-linux-driver-8.4.0
I have used the test program that comes with the peak driver.
I have setup two running programs:
>>./receivetest -f=/dev/pcan33 -b=0x0014 -e
>>./transmitest -f=/dev/pcan32 –b=0x0014 -e hello.txt
hello.txt contains:
m e ...
OS: Ubuntu 14.04 (64bit)
Driver: peak-linux-driver-8.4.0
I have used the test program that comes with the peak driver.
I have setup two running programs:
>>./receivetest -f=/dev/pcan33 -b=0x0014 -e
>>./transmitest -f=/dev/pcan32 –b=0x0014 -e hello.txt
hello.txt contains:
m e ...