Search found 5 matches

by highouse
Sat 23. Dec 2017, 03:02
Forum: PCAN-USB
Topic: PCAN-USB receive message using EVENT, Triggered while msgs
Replies: 8
Views: 13607

Re: PCAN-USB receive message using EVENT, Triggered while ms

pcan.png
pcan.png (47.72 KiB) Viewed 13591 times
Unfortunately, I followed your steps, but I really got the error that

Code: Select all

		if (result == WAIT_OBJECT_0)
			ReadMessages();
be triggered again and again.
by highouse
Fri 22. Dec 2017, 09:45
Forum: PCAN-USB
Topic: PCAN-USB receive message using EVENT, Triggered while msgs
Replies: 8
Views: 13607

Re: PCAN-USB receive message using EVENT, Triggered while ms

Hi,

a CAN bus system must have at least two active CAN nodes, otherwise there will be no acknowledge bit set and the CAN sender will run into an ack error. It is like having a phone an no one to call :D

regards

Michael

Hi,
I understand that if there is only one active node, CAN sender will ...
by highouse
Thu 21. Dec 2017, 16:13
Forum: PCAN-USB
Topic: PCAN-USB receive message using EVENT, Triggered while msgs
Replies: 8
Views: 13607

Re: PCAN-USB receive message using EVENT, Triggered while ms

In this topic find
http://www.peak-system.com/forum/viewtopic.php?f=14&t=35

a Busheavy can occur when you want to send a CAN-message and no other CAN-node is able to send a acknowlegde frame (wrong baudrate, CAN-bus not connected, no CAN-termination, a CAN-bus system with only one CAN-node etc ...
by highouse
Thu 21. Dec 2017, 15:07
Forum: PCAN-USB
Topic: PCAN-USB receive message using EVENT, Triggered while msgs
Replies: 8
Views: 13607

PCAN-USB receive message using EVENT, Triggered while msgs

I am using PCAN-USB device under Windows 10 x64, and I want to use EVENT to get msgs.
API CAN_Initialize CAN_SetValue both succeed, but WaitForSingleObject always get trigger while no message received. Here is my code. Could you help me with it please?
void* canReceiveLoop(void* arg)
{
TPCANStatus ...
by highouse
Fri 15. Dec 2017, 09:48
Forum: PCAN-Basic
Topic: How to use PCAN_RECEIVE_EVENT in linux with PCANBasic API
Replies: 3
Views: 4816

How to use PCAN_RECEIVE_EVENT in linux with PCANBasic API

I used PCANBasic API both on Windows and Ubuntu, and PCAN_RECEIVE_EVENT works in Windows to reduce CPU Occupancy rate. BUT I didn't find a way to impletement the same result in Ubuntu.
Could someone help me?