Page 1 of 1

Problem setting bit rate adapting

Posted: Thu 8. Nov 2018, 19:26
by kkregger
I'm using a PCAN USB device.
I'm trying to do this in C#:
TPCANStatus status = 0;
uint enable = PCANBasic.PCAN_PARAMETER_ON;
status = PCANBasic.SetValue(handle, TPCANParameter.PCAN_BITRATE_ADAPTING,
ref enable, Convert.ToUInt32(Marshal.SizeOf(enable)));
The returned status always equals TPCANStatus.PCAN_ERROR_ILLPARAMTYPE.
This is something that I thought had worked previously.
I'm out of ideas.

Re: Problem setting bit rate adapting

Posted: Fri 9. Nov 2018, 08:31
by K.Wagner
Hello,

The error you are receiving means, that the Parameter is not recognized, so probably your application is using an older version of PCAN-Basic.

The parameter PCAN_BITRATE_ADAPTING is available beginning with the version v4.0.0, which was released on May 21st, 2015.

Please check that your application is using at least this version of PCAN-Basic. The current version isv4.3.0

Re: Problem setting bit rate adapting

Posted: Tue 13. Nov 2018, 00:31
by kkregger
I sometimes see ILLCLIENT errors when connecting to PCAN USB devices with version 4.3.0.
I don't see these errors with version 4.0.0.
My Bit rate adapting problem seems to be solved.
Thanks.

Re: Problem setting bit rate adapting

Posted: Tue 13. Nov 2018, 17:33
by K.Wagner
Hello,

the problem you posted here is now solved. The question about the illegal client doesn't fit here. Please create a new topic for it and give more details on that. Thanks.

***Solved***