MD4 - GFOUT or JFOUT Assignment

cdvorak 3 years ago in IQANdesign updated by Ulrik Zakariasson (Software development) 3 years ago 5

Maybe I am missing something very simple, but I am struggling to understand how to receive an analog input on a XC23 connected to a MD4, convert it to a CAN parameter (generic or J1939), insert this CAN parameter into a CAN frame and output it on the bus with the MD4 module. Everything is straight forward until having to assign the JFOUT or GFOUT to a module. The system seems to not allow me to assign the JFOUT or GFOUT to the MD4 module. Do I need to create another device on the Generic or J1939 bus and assign this output frame to that device? This is some what confusing to me as this seems really like a virtual module, as I would anticipate that the MD4 is really the device sending the message. If I have to create another module on the J1939 bus to assign this JFOUT to does it have to be a different J1939 source address than the MD4 module? Another question, if the MD4 is connected to two J1939 buses can it not use different source addresses on each bus? Please help. 

Satisfaction mark by cdvorak 3 years ago

Since you want to send out a CAN frame, one can assume that you have a recipient of that CAN frame.

In the application logic you will need to model that receiver with a module.

Assigning a xFOUT to that module will logically represent the application sending out a CAN frame to that module.

An xFIN assigned on the (same) module will represent messages received to the application from the module.

For a Generic module there is no special meaning, other than it provides structure to the application.

For J1939 modules you have the source address which is an integral part of the CAN id for the J1939 protocol.

Since a module is a logical representation of a physical module, the MD4 (should) have the same source address regardless of how many (physical) J1939 buses it has.

Thanks Marcus,

If I do not intend to send the message to a specific module (not sure yet), but just broadcast the CAN frame onto the bus so that any device on that bus could read it in, would I just create a device on the bus with the global source address of 255?


I'm a bit baffled over the fact that we allow setting Source address to 255 on a module, since it's a bit nonsensical, and would not be considered good practice.

For your purpose it'd be best to create a 'dummy' module with a source address that is not used by any other module in the system, and then perhaps override the Destination address on the JFOUT channel.

I say perhaps, since PGN numbers >= 61440 (PDU2) does not contain destination address information and are de facto broadcast. Perhaps you can find a suitable PGN for reuse, or use Proprietary B (65280 - 65535).

This is probably the best way to go!

In order for the Destination address property to become available on the JFOUT you'll have to use a PGN numbers < 61440 (PDU1).

For all intents and purposes, if you choose to go PDU1, PGN 61184 (Proprietary A; 0xEF00) is your best option. Lots of reserves down there.

Reading up on the matter, setting address 255 (and 254) on a module is not only bad practice, it also opens up for violations of the standard. I've opened a case to see if we can tighten up the limits on that...