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
Listen only
Re: Listen only
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
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