Search found 9 matches

by rachedrech
Thu 29. Jun 2017, 14:15
Forum: PCAN-Basic
Topic: How can I reset the Tx Buffer of Peak CAN
Replies: 9
Views: 14629

Re: How can I reset the Tx Buffer of Peak CAN

Yes thank you, calling unitialize before initializing solves the problem :)
by rachedrech
Thu 29. Jun 2017, 13:24
Forum: PCAN-Basic
Topic: How can I reset the Tx Buffer of Peak CAN
Replies: 9
Views: 14629

Re: How can I reset the Tx Buffer of Peak CAN

Okay, here you go:
I tried to send can message from my GUI to the microcontroller using the function writeFD while the MCU's CAN is not configured, so i get an error in my gui which is normal saying that the chip is not in CAN bootloader mode.
I added the InitializeFD function after detecting this ...
by rachedrech
Thu 29. Jun 2017, 09:55
Forum: PCAN-Basic
Topic: How can I reset the Tx Buffer of Peak CAN
Replies: 9
Views: 14629

Re: How can I reset the Tx Buffer of Peak CAN

the only way that seems to delete the TX messages is when I reconnect the USB cable, even using the CAN initFD function won't work :?:
by rachedrech
Tue 27. Jun 2017, 17:51
Forum: PCAN-Basic
Topic: How can I reset the Tx Buffer of Peak CAN
Replies: 9
Views: 14629

Re: How can I reset the Tx Buffer of Peak CAN

thank you for your reply,

I am using the PCAN Basic with java, I only have Initialize and InitializeFD methods, there's no CAN_init, will it work with these methods ?

EDIT: I tried with InitializeFD and unfortunately it solve the problem, I still getting the messages after I restart the MCU
by rachedrech
Tue 27. Jun 2017, 11:48
Forum: PCAN-Basic
Topic: How can I reset the Tx Buffer of Peak CAN
Replies: 9
Views: 14629

How can I reset the Tx Buffer of Peak CAN

Hi,

I am using PCAN USB PRO FD to establish a connection in FD can with a microcontroller.

When I try to send a CAN frame to the MCU while it's not connected or not even powered, the peak CAN tries always to send the message because when I first turn on and connect the MCU, the peak sends the ...
by rachedrech
Fri 16. Jun 2017, 16:00
Forum: PCAN-Basic
Topic: Timeout ? +problem with getting RX frames
Replies: 8
Views: 9408

Re: Timeout ? +problem with getting RX frames

thank you for the reply, yes that's what I am doing actually, I open my application and PCANviewer to see all messages using the trace, but the problem is that the microcontroller sometimes sends a CAN frame but it won't be detected by neither of the two programs ( PCAN viewer and my program)

I ...
by rachedrech
Fri 16. Jun 2017, 15:43
Forum: PCAN-Basic
Topic: Timeout ? +problem with getting RX frames
Replies: 8
Views: 9408

Re: Timeout ? +problem with getting RX frames

No it is all good, i have the CAN bus linking the microcontroller and the PCAN Pro
Even in PCAN viewer, it looks like that i dont receive anything and theres no Bus off or buss passive ... errors

This problem happens once in a while, not everytime but it's really bothering me and making it harder ...
by rachedrech
Fri 16. Jun 2017, 15:04
Forum: PCAN-Basic
Topic: Timeout ? +problem with getting RX frames
Replies: 8
Views: 9408

Timeout ? +problem with getting RX frames

Hello everyone,

is there a way to detect a timeout when waiting for reception of a frame: I send a CAN frame ( some sort of command) and I am waiting for a response, and if I dont get a response, the program will go on forever)

Another thing, Sometimes the Peak CAN doesnt detect message but still ...
by rachedrech
Mon 20. Mar 2017, 11:19
Forum: Third Party Software
Topic: Qt 5.8 with QtSerialBus released
Replies: 6
Views: 18237

Re: Qt 5.8 with QtSerialBus released

Hello,

I am having a problem with the Qt CAN example, it runs perfectly on windows and I am able to send and receive messages. On Linux I i installed the PCAN driver and tested it and it works, but when I use the Qt CAN example I always have an error when connecting to the peak can device: "A PCAN ...