receiving CAN message

4 years 7 months ago #29531702 by davidl57
I am trying to get a CAN messge to my MDC2460 controller. I am using PCAN to send and receive messages. PCAN sees the heartbeat from the controller but the controller nevers seems to see a message coming in. at this time The controller is configured for RawCAN, at 125Kb. My understanding from the manual is the in this mode the controller will receive any message and I need to write a script to determine if it is for me.

with the script:

while true
nummessages = getvalue(_CF)
print ("nummessages = ", nummessages, "\n")
end while

nummessages is always zero.

Any advice?

Please Log in or Create an account to join the conversation.

4 years 7 months ago - 4 years 7 months ago #29531703 by LROBBINS
Replied by LROBBINS on topic receiving CAN message
What is the "Listen Node ID:" in your profile? To receive all messages from all transmitting nodes it should be 0. Default for the MDC2460 is 1.

Please Log in or Create an account to join the conversation.

4 years 7 months ago #29531704 by davidl57
Replied by davidl57 on topic receiving CAN message
Thanks, that gets me over that hump.

Please Log in or Create an account to join the conversation.

4 years 7 months ago #29531715 by korence
Replied by korence on topic receiving CAN message
Thanks for your nice post, guys.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.114 seconds