Help with CAN messaging

Discuss issues and ideas you have to configuring displays with PowerVision
cconner_aie
Posts: 93
Joined: Thu Jun 11, 2015 10:12 am

Help with CAN messaging

Post by cconner_aie » Wed Mar 02, 2016 10:22 am

I'm using a PV480 and trying to get CAN messaging working.

Here is my message.
Image
Image

I have to broadcast this over source address 208 so I set that up in my connections.
Image

I'm not sure if this is necessary, but I have a state machine set up to fire off an initialize script with the following upon start up because default values are grayed out when using "Transmission Device"
Image

Code: Select all

void $Initialize$ () 
{
   	smWrite(VariableIDs.J1939_Transmission_Engine_Override_Control_Mode, 1);
	smWrite(VariableIDs.J1939_Transmission_Engine_Requested_Speed_Speed_Limit, 9600);
	smWrite(VariableIDs.J1939_Transmission_Engine_Requested_Torque_Torque_Limit, 0);
}
I tried using the "Transmit 1 Device" in CANPort1 connections, but I don't see a way to set a source address.

Here is where my question comes in. I'm not doing anything besides broadcasting these messages and I know CAN communication is working because the built in Engine Speed is being read correctly. These are the only messages I see when reading the CAN traffice
Image

The first two items only appear when the panel powers up, I assume this is a handshake if you were to use the ECOM device to program (I am not).
The last one cycles every two seconds, which I can only assume is a status of some kind.

None of these are what I am supposedly broadcasting. I have the ECU disconnected so the only traffic being shown is that from the panel.

Am I missing something fundamental needed to get the PV480 to broadcast traffic?
Coleby Conner
Controls Engineer, Anderson Industrial Engines
cconner_aie
Posts: 93
Joined: Thu Jun 11, 2015 10:12 am

Re: Help with CAN messaging

Post by cconner_aie » Wed Mar 02, 2016 10:48 am

Update:

I tried with Engine Devices and didn't see any traffic.
I tried with Transmit 1 and I now see traffic, however there is no way to set a source address.
Image

I'm seeing a source address of 0xF2 or 242, is there anyway to change that? All the options are grayed out.
Image

Would I have to do this as a free form message? If so I haven't looked much into it and will require some digging.
Coleby Conner
Controls Engineer, Anderson Industrial Engines
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: Help with CAN messaging

Post by stalley » Wed Mar 02, 2016 1:07 pm

Hello Coleby,

You might look at this post I just put up earlier today viewtopic.php?f=7&t=1248. It has a demo config to transmit an extended frame (29 bit identifier) Free Form message from a state machine. It also has one sent from a script.

In the script, the Source Address transmitted turns out to be the right most bytes, x78.

This should get you going using a Free Form extended frame message. You could also do as you suggested with the Transmit Device.

The PV480 has only one CAN port, in PowerVision Configuration Studio, the variable is CANPort1.Address.

The Transmit Device will use the PV480's CANPort1.Address.

The J1939 Devices (Engine Device, Transmission Device and GPS in the Murphy Standards, for example) define what the displays will listen to and receive.

I would highly recommend the PowerVision Configuration Studio training. Also the PowerVision Configuration Studio reference manuals for 2.8 are found at the following link viewtopic.php?f=3&t=1165. Both would save you the time you spent finding what doesn't work.
Sara Talley
Software Engineer
Enovation Controls
cconner_aie
Posts: 93
Joined: Thu Jun 11, 2015 10:12 am

Re: Help with CAN messaging

Post by cconner_aie » Wed Mar 02, 2016 1:13 pm

Thank you Sara,

This looks to be helpful, I'very gone through the basic training but haven't had the means to make it to the programming training.

I asked about programming documentation in the past and there wasn't any, I'm glad to see there is documentation now.

I'll take a look at these and hopefully get past this road block.

Thanks!
Coleby Conner
Controls Engineer, Anderson Industrial Engines