Page 1 of 1

When using CAN_Initialize, initialization may fail.

Posted: Fri 25. Aug 2023, 12:01
by TERAsys
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

Re: When using CAN_Initialize, initialization may fail.

Posted: Fri 25. Aug 2023, 15:23
by G.Lang
Hi,

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

Hope this helps

Re: When using CAN_Initialize, initialization may fail.

Posted: Mon 4. Sep 2023, 05:10
by TERAsys
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?

Re: When using CAN_Initialize, initialization may fail.

Posted: Mon 4. Sep 2023, 08:32
by PEAK-Support
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.

Re: When using CAN_Initialize, initialization may fail.

Posted: Thu 7. Sep 2023, 10:22
by PEAK-Support
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