Search found 1691 matches
- Tue 17. Dec 2024, 13:55
- Forum: PCAN-USB X6
- Topic: Busload discrepancies
- Replies: 2
- Views: 760
Re: Busload discrepancies
Hello, the PCAN FD hardware calculates the busload in an internal interval of (clock freq/prescaler)*8 and each 4095 intervalls a busload frame is generated. To get the best precision, you have to use each busload frame and build an average over all. If you only poll the busload, you may miss some b...
- Tue 17. Dec 2024, 12:00
- Forum: PCAN-Basic
- Topic: 80h: TX | Stuff Error
- Replies: 4
- Views: 662
Re: 80h: TX | Stuff Error
Hi,
simply use a 1ms sleep, to be sure the frame could be sent on a 500k bus (empty CAN, no arbitration losses!).
How about termination of your cables? A stuff error is mostly a termination issue....
regards
Michael
simply use a 1ms sleep, to be sure the frame could be sent on a 500k bus (empty CAN, no arbitration losses!).
How about termination of your cables? A stuff error is mostly a termination issue....
regards
Michael
- Tue 17. Dec 2024, 11:22
- Forum: PCAN-Basic
- Topic: 80h: TX | Stuff Error
- Replies: 4
- Views: 662
Re: 80h: TX | Stuff Error
Hi,
please check that you use termination resistors on both ends of your CAN cable. A small sleep between write and CAN_Unitialize() could also help, maybe you close the channel before the frame was fully written to the bus.
regards
Michael
please check that you use termination resistors on both ends of your CAN cable. A small sleep between write and CAN_Unitialize() could also help, maybe you close the channel before the frame was fully written to the bus.
regards
Michael
- Mon 9. Dec 2024, 12:34
- Forum: PCAN-Router FD
- Topic: Change of Can FD timing
- Replies: 3
- Views: 843
Re: Change of Can FD timing
Hi, yes, also possible. Your variable must be of type CANTiming_t than: typedef struct { uint32_t can_clk; //!< clock for CAN controller, see CAN_CLOCK_... uint16_t nom_brp; //!< prescaler for arbitration phase ( 1..1024) uint16_t nom_tseg1; //!< Tseg1 for arbitration phase ( 1..256) uint8_t nom_tse...
- Mon 11. Nov 2024, 10:10
- Forum: Linux
- Topic: PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun
- Replies: 3
- Views: 1371
Re: PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun
Hi, looks like you are using the peak-linux-driver. Please post the output of cat /proc/pcan to see which version you are using. With this driver it is possibe to increase the rx buffer or even switch to MSI instead of INTA interrupt handling, to improve such issues. More details are available in th...
- Wed 6. Nov 2024, 08:58
- Forum: PLIN-API
- Topic: Diagnostics on LIN
- Replies: 5
- Views: 1232
Re: Diagnostics on LIN
Hi,
we can't help in any LabView related issues, but there are ready to use PLIN LabView VIs available by the company KDI/digiinst:
https://www.digiinst.de/c/software
They also offer support for their LabView drivers
regards
Michael
we can't help in any LabView related issues, but there are ready to use PLIN LabView VIs available by the company KDI/digiinst:
https://www.digiinst.de/c/software
They also offer support for their LabView drivers
regards
Michael
- Tue 5. Nov 2024, 14:17
- Forum: PLIN-API
- Topic: Diagnostics on LIN
- Replies: 5
- Views: 1232
Re: Diagnostics on LIN
Hi,
please open the filters for all messages with SetClientFilter() to be able to read all LIN frames.
About your question of TLINSlotType : please see PLIN API documentation on page 13
regards
Michael
please open the filters for all messages with SetClientFilter() to be able to read all LIN frames.
About your question of TLINSlotType : please see PLIN API documentation on page 13
regards
Michael
- Tue 5. Nov 2024, 12:00
- Forum: PLIN-API
- Topic: Diagnostic response not received
- Replies: 5
- Views: 4156
Re: Diagnostic response not received
Hi,
use LIN_Read() to see the correct LIN frames or errors on the LIN after your Write() commands
regards
Michael
use LIN_Read() to see the correct LIN frames or errors on the LIN after your Write() commands
regards
Michael
- Tue 5. Nov 2024, 11:58
- Forum: PLIN-API
- Topic: Diagnostics on LIN
- Replies: 5
- Views: 1232
Re: Diagnostics on LIN
Hello, when working with LIN Diagnose frames, IMHO it will be better to not use the scheduler for that. We typical use a multimediatimer and use LIN_Write() to send out the 3C publisher and the 3D subscriber frame. Take care to read the frames with LIN_Read() in a loop using also a multimedia timer ...
- Tue 5. Nov 2024, 11:49
- Forum: PCAN-Router FD
- Topic: Change of Can FD timing
- Replies: 3
- Views: 843
Re: Change of Can FD timing
Hi, yes, this is possible. You can change the CAN initialization during normal operation by calling: CAN_UnInitialize ( CANHandle_t hBus); followed by CAN_Initialize ( CANHandle_t hBus, const CANTiming_t *timing); with the new settings for your CAN channel. Please see \inc\can.h for more details abo...