Search found 10 matches

by cgmollo62
Wed 21. Sep 2022, 13:39
Forum: PCAN-Router FD
Topic: HW_EnterPowerDown not working if activity on CAN2
Replies: 2
Views: 4108

Re: HW_EnterPowerDown not working if activity on CAN2

Thank you very much for the quick reply. I guess I was stuck on the thought that only CAN data received on CAN1 would wake the router. I will email you for the schematic on the solder jumpers to configure the router to not wake on CAN2 traffic. Thanks again!
by cgmollo62
Tue 20. Sep 2022, 19:53
Forum: PCAN-Router FD
Topic: HW_EnterPowerDown not working if activity on CAN2
Replies: 2
Views: 4108

HW_EnterPowerDown not working if activity on CAN2

Hi. In our router firmware we call HW_EnterPowerDown if there are no messages received on CAN1 for more than 5 seconds. However, the router was not powering-down (sleeping) as expected until we removed a device connected to the CAN2 side of the router. This device was periodically sending a CAN ...
by cgmollo62
Tue 12. Jul 2022, 21:09
Forum: PCAN-Router FD
Topic: Router overloaded?
Replies: 5
Views: 6091

Re: Router overloaded?

We eventually figured out that the CAN network configuration was not quite correct. Some CAN messages were coming in with the incorrect configuration, so that confused the situation at first... we figured the configuration was probably OK since some messages were coming into the firmware. Turns out ...
by cgmollo62
Thu 7. Jul 2022, 13:05
Forum: PCAN-Router FD
Topic: Router overloaded?
Replies: 5
Views: 6091

Re: Router overloaded?

Yes... I was thinking about changing the long if / else if to a switch construct. I will do that. Thanks for the tip on the compiler optimization!

Chris
by cgmollo62
Sat 2. Jul 2022, 13:21
Forum: PCAN-Router FD
Topic: Router overloaded?
Replies: 5
Views: 6091

Re: Router overloaded?

Thank you very much for the reply. I am not concerned about the CAN 2.0 network (or the CAN FD network)... my concern is solely with the PCAN router. The info you provided on can_user.c is helpful. Thanks!

Just as an FYI, the router has to check every incoming CAN FD message to see if it is one of ...
by cgmollo62
Wed 29. Jun 2022, 16:04
Forum: PCAN-Router FD
Topic: Router overloaded?
Replies: 5
Views: 6091

Router overloaded?

Hi. I realize it is difficult to inform on when the PCAN-Router FD might be overloaded, but I suspect that is what is happening in our situation. We are using the router to convert about 15 CAN messages from CAN FD to CAN 2.0. However, the CAN FD network has 316 unique messages on it. Message rates ...
by cgmollo62
Wed 29. Jun 2022, 15:16
Forum: PCAN-Router FD
Topic: Usage of second argument to the CAN_FilerAdd function
Replies: 2
Views: 4385

Re: Usage of second argument to the CAN_FilerAdd function

Great. Thanks! The code I downloaded last February does not have those param descriptions in the comments for the CAN_FilterAdd function. I will download the code again to get the latest and greatest.
by cgmollo62
Wed 29. Jun 2022, 15:12
Forum: PCAN-Router FD
Topic: CAN timing settings in C code
Replies: 2
Views: 4534

Re: CAN timing settings in C code

Perfect. Thanks!
by cgmollo62
Tue 28. Jun 2022, 18:06
Forum: PCAN-Router FD
Topic: Usage of second argument to the CAN_FilerAdd function
Replies: 2
Views: 4385

Usage of second argument to the CAN_FilerAdd function

Regarding the second argument to the CAN_FilterAdd function, does:

CAN_FilterAdd (CAN_BUS1, CAN_MSGTYPE_FDF | CAN_MSGTYPE_EXTENDED, 0x000, 0x7FF);

mean the message has to be a CAN FD message and have an extended ID, or does it mean the message has to be a CAN FD message or have an extended ID ...
by cgmollo62
Tue 28. Jun 2022, 13:12
Forum: PCAN-Router FD
Topic: CAN timing settings in C code
Replies: 2
Views: 4534

CAN timing settings in C code

Hi. The C_POWER_STATES example code has the following CAN timing settings string: _80M_500K_80____4M_80_ISO. I think the 80M is the clock speed and the 500K is the nominal bit rate. What are the other settings in this string? Thanks!