Note
Disabling the ReceiveStatus parameter also suppresses the reception of Echo frames.
This parameter allows / disallows the reception of Echo frames within a PCAN Channel, this is, the reception of frames sent by itself. This parameter doesn’t affect the acceptance filter of the PCAN Channel. Furthermore, other applications working with the same hardware can individually configure the reception of Echo frames.
It is available since PCAN-Basic version 4.6.0.
This parameter is read/write. It can be configured and retrieved.
This parameter can be activated or deactivated. Accepts values of type ParameterValueActivation.
The default state of receiving Echo frames is Off. After switching it On, receiving Echo frames stays active until it is expressly deactivated, or the Channel is disconnected, i.e., using the Uninitialize method.
Get: The PCAN Channel must be initialized before using this parameter.
Set: The PCAN Channel must be initialized before using this parameter.
The following code shows how to enable receiving Echo frames on a USB Channel:
PcanChannel channelUsed = PcanChannel.Usb01;
if (Api.Initialize(channelUsed, Bitrate.Pcan500) == PcanStatus.OK)
{
if (Api.SetValue(channelUsed, PcanParameter.AllowEchoFrames, ParameterValue.Activation.On) == PcanStatus.OK)
Console.WriteLine($"Receiving Echo frames on {channelUsed} has been successfully enabled.");
else
Console.WriteLine($"Error configuring the reception of Echo frames on channel {channelUsed}.");
Api.Uninitialize(channelUsed);
}Dim channelUsed As PcanChannel = PcanChannel.Usb01
If Api.Initialize(channelUsed, Bitrate.Pcan500) = PcanStatus.OK Then
If Api.SetValue(channelUsed, PcanParameter.AllowEchoFrames, ParameterValue.Activation.On) = PcanStatus.OK Then
Console.WriteLine($"Receiving Echo frames on {channelUsed} has been successfully enabled.")
Else
Console.WriteLine($"Error configuring the reception of Echo frames on channel {channelUsed}.")
End If
Api.Uninitialize(channelUsed)
End IfPcanChannel channelUsed = PcanChannel::Usb01;
if (Api::Initialize(channelUsed, Bitrate::Pcan500) == PcanStatus::OK)
{
if (Api::SetValue(channelUsed, PcanParameter::AllowEchoFrames, ParameterValue::Activation::On) == PcanStatus::OK)
Console::WriteLine("Receiving Echo frames on {0} has been successfully enabled.", channelUsed);
else
Console::WriteLine("Error configuring the reception of Echo frames on channel {0}.", channelUsed);
Api::Uninitialize(channelUsed);
}