Search found 186 matches

by F.Vergnaud
Mon 16. May 2022, 12:17
Forum: Linux
Topic: pcanfd_open(..)
Replies: 3
Views: 146

Re: pcanfd_open(..)

Hello,

1% tolerance is too high. Without resynchronization and with a CAN frame which could have more than 100bits, you will be completely out of the bittime!

If you want to have a more complex answer, read this: https://www.can-cia.org/fileadmin/resou ... mutter.pdf
by F.Vergnaud
Mon 16. May 2022, 10:00
Forum: Linux
Topic: pcanfd_open(..)
Replies: 3
Views: 146

Re: pcanfd_open(..)

Hello Petar, When using pcanfd_open with only the bitrate specified as bit-per-second, you specify the API to compute for you the internal parameters (brp, tseg1, tseg2, sjw). It will find the best values to obtain a sample point of 87.50%: this is the default value if OFD_SAMPLEPT is not specified....
by F.Vergnaud
Tue 10. May 2022, 17:57
Forum: PCAN-ISO TP
Topic: receiving a multiple-frame transmission from ECU. why 03 0a 0a?
Replies: 2
Views: 68

Re: receiving a multiple-frame transmission from ECU. why 03 0a 0a?

Hello Fabio,

What you are seeing is the ISOTP Flow Control Frame, it holds the Block Size and the Minimum Separation Time.
These can be configured with the corresponding parameters: PCANTP_PARAMETER_BLOCK_SIZE and PCANTP_PARAMETER_SEPARATION_TIME.
by F.Vergnaud
Mon 2. May 2022, 10:14
Forum: PCAN-UDS
Topic: upload with SvcTransferData_2013
Replies: 6
Views: 135

Re: upload with SvcTransferData_2013

Hello Fabio, I think that the response from the server is missing the Service ID : 11) 8520.9 Rx 07E0 8 02 36 01 55 55 55 55 55 <--- client request SvcTransferData_2013 12) 8526.4 Rx 07E8 8 10 15 53 54 4D 33 32 2E <--- server response: Segmented Frame of length 0x15, Service ID = 0x53 13) 8526.6 Rx ...
by F.Vergnaud
Fri 29. Apr 2022, 17:11
Forum: PCAN-UDS
Topic: upload with SvcTransferData_2013
Replies: 6
Views: 135

Re: upload with SvcTransferData_2013

Hello Fabio,

Your trace lacks entry 13).. Can you confirm there was a Flow Control from 07E0?
by F.Vergnaud
Thu 28. Apr 2022, 16:19
Forum: PCAN-UDS
Topic: upload with SvcTransferData_2013
Replies: 6
Views: 135

Re: upload with SvcTransferData_2013

Hello Fabio, After you make a call to a UDS service request, you need to call function WaitForService(). The data will be stored in the response message. You can check sample 06_client_all_reques t for an example: status = UDSApi.SvcTransferData_2013(channel, config, out request, 0x01, record, recor...
by F.Vergnaud
Mon 4. Apr 2022, 09:55
Forum: PCAN-ISO TP
Topic: Multiple Frames Issue after upgrade for 3.1.1 to 3.2.0
Replies: 1
Views: 160

Re: Multiple Frames Issue after upgrade for 3.1.1 to 3.2.0

Hello, There were a few necessary changes in the past versions that could be linked with your case, especially within PCAN-ISO-TP and functions CANTP_Mapping_2016 and CANTP_Write_2016. Have you checked the version histories: - PCAN-ISO-TP API Version History - PCAN-UDS API Version History When the t...
by F.Vergnaud
Wed 23. Mar 2022, 14:32
Forum: Software
Topic: PCAN API Java Thread termination Hangs
Replies: 4
Views: 1008

Re: PCAN API Java Thread termination Hangs

Hello Brandon, I have to apologize, there is indeed an issue with CTRL-C interruption and the linux version of libpcanbasic_jni (<=4.5.0, library is catching SIGINT signals). Although I didn't find a link between this problem and your hanging within Uninitialize function, if an application also catc...
by F.Vergnaud
Fri 18. Mar 2022, 15:56
Forum: Software
Topic: PCAN API Java Thread termination Hangs
Replies: 4
Views: 1008

Re: PCAN API Java Thread termination Hangs

Please note, I've checked your use-case with a minimal Java sample (with and without RT Patch) with latest PCAN driver 8.14. But I could not reproduce your issue, you'll find below the sample. package src; import peak.can.basic.*; public class Example extends java.lang.Thread { // CAN-related goodie...
by F.Vergnaud
Fri 18. Mar 2022, 10:31
Forum: Software
Topic: PCAN API Java Thread termination Hangs
Replies: 4
Views: 1008

Re: PCAN API Java Thread termination Hangs

Hello Brandon, My first guess would be that there is some deadlock with the Java-threads (there are no internal threads created within PCANBasic Linux API, so there is no obvious reason why the Uninitialize function would block). Where/when do you call "can.Uninitialize" in your code so that it hang...