When using CAN_Initialize, initialization may fail.

CAN FD to LAN gateway in DIN rail plastic casing
Post Reply
TERAsys
Posts: 3
Joined: Wed 24. May 2023, 04:27

When using CAN_Initialize, initialization may fail.

Post by TERAsys » Fri 25. Aug 2023, 12:01

Hello

I am making a program with PCAN-Basic API. Sometimes initialization fails. If the initialization fails, connect and disconnect the CAN channel with the problem using the PCAN-View program, and the program I am making will initialize normally. (The PCAN-Basic example program is also not initialized in the same way, but if you use PCAN-View, the initialization is successful)

We are asking if there is an API that performs functions similar to PCAN-View's Connect/Disconnect in PCAN-Basic API. If there is no API with a similar function, I would appreciate it if you could tell me if there is a way to initialize without using PCAN-View.

Below is the initialization process.
[procedure]
1. Set "Bit rate Adaptation" in the Configuration Parameters box, check Active, and click the Settings button.
2. After setting the channel to connect, click the Initialize button.

[Product]
* OS: Window 10
* Product: PCAN-Ethernet Gateway FD DR
* Using the PCAN-Basic API

G.Lang
Support
Support
Posts: 174
Joined: Wed 22. Sep 2010, 14:58

Re: When using CAN_Initialize, initialization may fail.

Post by G.Lang » Fri 25. Aug 2023, 15:23

Hi,

please take a look at the following pic
initialize_1.png
initialize_1.png (158.49 KiB) Viewed 9351 times

Hope this helps

TERAsys
Posts: 3
Joined: Wed 24. May 2023, 04:27

Re: When using CAN_Initialize, initialization may fail.

Post by TERAsys » Mon 4. Sep 2023, 05:10

Thank you for your reply. I referred to the PCAN-Basic Documentation, but initialization still occasionally fails.

Initialization will not be successful unless i reboot the computer or disconnect after connecting PCAN-View when initialization has failed.

Does PCAN-View's Connect/Disconnect involve additional tasks other than CAN_initialize/CAN_Uninitialize?

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: When using CAN_Initialize, initialization may fail.

Post by PEAK-Support » Mon 4. Sep 2023, 08:32

Check if you have all Tools up to date. If you are not sure how to check, use this Tool and send us the result by E-mail.We check the file and send you the feedback .
When a Ethernet Connection is established, and the Device is registered as a CAN Interface, you could use it with PCAN-View, PCAN-Explorer own Application using PCAN-basic API etc. All is based on the same Software Interface.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: When using CAN_Initialize, initialization may fail.

Post by PEAK-Support » Thu 7. Sep 2023, 10:22

We have delete your last answer, because yo do not follow the Forum rules.

:!: PLEASE read what we write :!:
send us the result by E-mail.We check the file and send you the feedback
We will NEVER Post such detailed customers info in public
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply