Listen only

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
Gyula.L
Posts: 15
Joined: Fri 18. Oct 2024, 13:05

Listen only

Post by Gyula.L » Mon 31. Mar 2025, 12:11

I have a Worker object running correctly, sending and receiving frames. This is a standalone application.

I want to have another application, which could be ran parallel to the other one. This application should just read frames on CAN bus, without acknowledging (listen only) and without sending anything.

in the second application I am not able to start another worker. But somehow it must be possible, as PCAN View can also monitor the messages in listen only mode.

The first application, which sends and receives frames, must be unchanged. So I need another application

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Listen only

Post by M.Maidhof » Mon 31. Mar 2025, 14:03

Hi,

yes, it is a restriction of the PCANBasic API to only access one CAN channel per application. PCAN-View and PCAN-Explorer are based on the PCAN-Developer API, which don't have this restriction.
In your case, setting the listen-only mode will also change the hardware setting, so that your first application could also not transmit anymore when the hardware is set to LO mode. So the use of a second CAN channel will be the better choice, and than you could handle both applications by the PCANBasic API again.

regards

Michael

Post Reply