Problem setting bit rate adapting

This forum covers issues concerning multiple software products.

Problem setting bit rate adapting

Postby kkregger » Thu 8. Nov 2018, 19:26

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.
kkregger
 
Posts: 3
Joined: Mon 24. Jul 2017, 23:49

Re: Problem setting bit rate adapting

Postby K.Wagner » Fri 9. Nov 2018, 08:31

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
Best regards,
Keneth
K.Wagner
Software Development
Software Development
 
Posts: 634
Joined: Wed 22. Sep 2010, 12:36
Location: Darmstadt, Germany

Re: Problem setting bit rate adapting

Postby kkregger » Tue 13. Nov 2018, 00:31

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.
kkregger
 
Posts: 3
Joined: Mon 24. Jul 2017, 23:49

Re: Problem setting bit rate adapting

Postby K.Wagner » Tue 13. Nov 2018, 17:33

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***
Best regards,
Keneth
K.Wagner
Software Development
Software Development
 
Posts: 634
Joined: Wed 22. Sep 2010, 12:36
Location: Darmstadt, Germany


Return to Software



cron

This website uses cookies for analytics, for logins to the online shop and the forum, and for the handling of an order. By browsing this website you agree to the use of cookies. Detailed information on their use can be found in our privacy policy.

OKPrivacy Policy