PCAN-USB and J1939 Diagnostic Messages

USB to CAN Interface
Post Reply
martino
Posts: 3
Joined: Sun 9. Sep 2018, 09:38

PCAN-USB and J1939 Diagnostic Messages

Post by martino » Sun 9. Sep 2018, 09:51

With the PCAN-USB how can i transmit J1939 Diag. Messages that require more than 8 data bytes ?
And, the PCAN-USB can read them when are generated by some ECU on the bus ?
Thank You

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

Re: PCAN-USB and J1939 Diagnostic Messages

Post by K.Wagner » Mon 10. Sep 2018, 08:10

Hello,

Our devices work with CAN and CAN-FD protocols (raw CAN communication). J1939 is a CAN-based high layer protocol. This means, the J1939 handling must be implemented on the application layer, e.g. on your application. We have two products that implement J1939 already:
  • PCAN-RP1210: API library that allows sending/receiving CAN and J1939 data
  • PCAN-Explorer 6: Application for working with CAN and CAN-FD networks, that can be enhanced through Add-Ins. One of then, J1939 Add-In, is used for J1939 communication.
Best regards,
Keneth

martino
Posts: 3
Joined: Sun 9. Sep 2018, 09:38

Re: PCAN-USB and J1939 Diagnostic Messages

Post by martino » Mon 10. Sep 2018, 08:16

Thank Uou
can you suggest me an example with the products you quoted ?
I need to send a J1939 DM with 32 bytes.

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

Re: PCAN-USB and J1939 Diagnostic Messages

Post by K.Wagner » Mon 10. Sep 2018, 08:37

PCAN-Explorer:
With the PCAN-Explorer 6, all information is already there, so you only need to select your DM from a list, fill the data as needed and press a key to send the message. Responses and any data on the bus is automatically processed and presented in the reception panel.
PCAN-Explorer 6 with J1939 AddIn - Message Sending
PCAN-Explorer 6 with J1939 AddIn - Message Sending
PE6_J1939.PNG (53.2 KiB) Viewed 8759 times
PCAN-RP1210 API:
With the API you need to program an application (device connection, filter handling, write and read routines, etc), parse your data in a buffer and use the API function RP1210_SendMessage to send your data. You need then to use RP1210_ReadMessage to get any answer an ECU may send. Here an extract of the help showing information about the RP1210_SendMessage function:
Attachments
RP1210_SendMessage.pdf
RP1210-C SendMessage function
(282.14 KiB) Downloaded 805 times
Best regards,
Keneth

martino
Posts: 3
Joined: Sun 9. Sep 2018, 09:38

Re: PCAN-USB and J1939 Diagnostic Messages

Post by martino » Mon 10. Sep 2018, 14:26

Many thanks,
the Explorer 6 can work with the PCAN-USB ?

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

Re: PCAN-USB and J1939 Diagnostic Messages

Post by K.Wagner » Mon 10. Sep 2018, 14:34

Yes. With all devices from PEAK-System
Best regards,
Keneth

Post Reply