J1939 Receive (not recommended)
Simulink® Real-Time™ Library of Drivers No Longer Recommended for Use
The J1939 Receive block receives the PGNs.
Connect the J1939 Receive block directly to the output of a
CAN FIFO Read block. The input signal is a matrix of size
m is the FIFO read depth defined in the
FIFO Read block dialog box. Each row with its six elements contains
the information defining a CAN message:
|Data frame size|
See one of the FIFO Read blocks (for example, Softing CAN-AC2-PCI with Philips SJA1000 FIFO Read) for a detailed description of these elements.
The number of parameter group numbers (PGNs) in the PGN list parameter determines the number of block outputs. The block creates and labels an output port for each PGN in the list. Each output signal is a vector of unsigned bytes with a length of 16. The bytes are defined as follows:
Protocol data unit format (PDU format or PF)
Group extension if PF is greater than 240, else destination address (DA)
Data byte 1
Data byte 2
Data byte 3
Data byte 4
Data byte 5
Data byte 6
Data byte 7
Data byte 8
Select the filter criterion for the CAN port. From the list,
Enter the acceptance filter criterion for the parameter group number (PGN). Enter a list of PGNs that you want to receive. You can provide a set of PGNs as a row vector.
When the CAN FIFO blocks receives the data that corresponds to these PGNs, they filter these messages and send them to the J1939 Unpack block.
Enter the filter acceptance criterion for the specified controller application ID. Only messages whose destination addresses match the current controller application address or the global address will be routed to a PGN output.