I can't read more than 9 multiple frames with pcan_readFD

CAN FD Interface for High-Speed USB 2.0

I can't read more than 9 multiple frames with pcan_readFD

Postby raducu.gheorghe » Mon 11. Mar 2019, 13:02

Hi!

I have a issue with read fd of multiple frames for Can FD.
I send a command, receive a response and after that I send a flow control command, receive only 9 frames and filter doesn't work anymore.
Can you send me an example with can fd read multiple frames?
Thanks!
raducu.gheorghe
 
Posts: 4
Joined: Mon 11. Mar 2019, 12:47

Re: I can't read more than 9 multiple frames with pcan_readF

Postby M.Maidhof » Mon 11. Mar 2019, 15:59

Hi,

which API and which operation system (Linux, Windows) do you use?

regards

Michael
M.Maidhof
Support
Support
 
Posts: 1088
Joined: Wed 22. Sep 2010, 13:00
Location: Darmstadt, Germany

Re: I can't read more than 9 multiple frames with pcan_readF

Postby raducu.gheorghe » Tue 12. Mar 2019, 06:27

Hi,

Thanks for your fast reply. I work with windows 7 enterprise, x64. For pcan-usb fd I have firmware version 3.2.0 and driver version 4.1.4. My personal application it's build on x32. My PCANBasic.dll have file version 4.3.0.150 and product version 4.3.
P.S. In PCAN-View I receive all frames, not only 9.

Best regards
raducu.gheorghe
 
Posts: 4
Joined: Mon 11. Mar 2019, 12:47

Re: I can't read more than 9 multiple frames with pcan_readF

Postby M.Maidhof » Tue 12. Mar 2019, 10:58

Hi,

as a first step, please update to the latest PCANBasic API 4.3.2, which you can download from our support website.

Please also test with the sourcecode example PCANBasicExample.exe which we provide with the package in the Win32 and x64 directory.

regards

Michael
M.Maidhof
Support
Support
 
Posts: 1088
Joined: Wed 22. Sep 2010, 13:00
Location: Darmstadt, Germany

Re: I can't read more than 9 multiple frames with pcan_readF

Postby raducu.gheorghe » Tue 12. Mar 2019, 14:25

Hi,

I updated to the last version available for PCANBasic.dll.
With PCANBasicExample I can't make command to work fine because I need to send a command and few millisecond after send an flow control command to receive all frames from response of first command.
With PCAN-View I can make this work if I send first command and flow control command with a cycle time=1000 for both of commands. In BasicExample I can send only one command so isn't very helpfully.

I make few changes in my app and now app crush with error "Unhandled exception thrown: read access violation.
this was 0x8." So I search and 0x8 it's error code for heavy limit. Also all my function from PCAN dll it's null now.

You know what it's the reason and what can I do to fix this issue?

Thank you very much!

Raducu
raducu.gheorghe
 
Posts: 4
Joined: Mon 11. Mar 2019, 12:47

Re: I can't read more than 9 multiple frames with pcan_readF

Postby M.Maidhof » Thu 14. Mar 2019, 09:54

Hi,

looks like a problem in your code.

best regards

Michael
M.Maidhof
Support
Support
 
Posts: 1088
Joined: Wed 22. Sep 2010, 13:00
Location: Darmstadt, Germany

Re: I can't read more than 9 multiple frames with pcan_readF

Postby raducu.gheorghe » Fri 15. Mar 2019, 14:20

Hi,

I found how to fix the issue. Now it's works.
Have a nice day!

Best regards

Raducu
raducu.gheorghe
 
Posts: 4
Joined: Mon 11. Mar 2019, 12:47


Return to PCAN-USB FD



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