0% found this document useful (0 votes)
5 views8 pages

DG J2534 SDK Manual 20050711

This document provides user documentation for Dearborn Group's SAE J2534 compliant System Development Kit (SDK), detailing its purpose and supported protocols. It outlines the functionality of various J2534 commands and notes that one function, PassThruSetProgrammingVoltage, is not supported due to hardware limitations. Additionally, it lists known issues related to the user interface and function display.

Uploaded by

Vishwaroop Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views8 pages

DG J2534 SDK Manual 20050711

This document provides user documentation for Dearborn Group's SAE J2534 compliant System Development Kit (SDK), detailing its purpose and supported protocols. It outlines the functionality of various J2534 commands and notes that one function, PassThruSetProgrammingVoltage, is not supported due to hardware limitations. Additionally, it lists known issues related to the user interface and function display.

Uploaded by

Vishwaroop Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

www.dgtech.

com

User Documentation for Dearborn Group


J2534 SDK
July 11, 2005

This document describes Dearborn Group’s (DG) SAE J2534 compliant System
Development Kit (SDK). The purpose of this application is to facilitate the use of the
J2534 API functions using the DG Hardware.

This implementation is based on Version 04.04 of SAE J2534. Of the fourteen (14)
functions, only one function is not supported: PassThruSetProgrammingVoltage. This is
due to the DG hardware not having this capability at this time.

The Protocols supported are: CAN, ISO15765, ISO14230, ISO9141, J1850PWM, and J1850VPW.

User Documentation for Dearborn Group J2534 SDK ........................................................... 1


1 The Main Display area............................................................................................................ 2
2 J2534 Commands.................................................................................................................... 4
3 Known issues:......................................................................................................................... 8

 Dearborn Group, Inc.


27007 Hills Tech Court
Farmington Hills, MI 48331
Phone (248) 488-2080 • Fax (248) 488-2082

This document is copyrighted by the Dearborn Group, Inc. Permission is granted to copy any or all
portions of this manual, provided such copies are for use with the product provided by the Dearborn
Group, and that the name “Dearborn Group, Inc.” remains on all copies as on the original.

1 of 8
www.dgtech.com
1 The Main Display area

When the “About” Menu Item is selected the Version of the 2534 SDK is displayed as
the following (For the Gryphon):

Gryphon 2534 SDK Version 4.04

Note: Any text in the display area that is highlighted then the “Copy Highlighted Lines” button will become
enabled. If this button is selected then the text is sent to the clipboard so other applications can use it.

When the “File” Menu Item is selected three selectable menu items are available:

1. Save to File
2. Reset Capture
3. Exit

2 of 8
www.dgtech.com

Selecting “Saveto file” will display a standard Windows “Save As” Dialog. This allows the
user to save the contents of the Display area to a text file.

Selecting “Reset Capture” will allow the user to clear any entries in the display area.

Selecting “Exit” will close the application.

The “J2534 Commands” section when selected displays the following items:

Note: PassThruSetProgrammingVoltage function is not supported. This is due to the Gryphon and Python hardware not having this
capability.

3 of 8
www.dgtech.com

2 J2534 Commands
1. PassThruConnect has a dialog that allows the user to configure which protocol. The following lists
the supported protocols that can be configured. The Cancel button closes the dialog.

PassThruConnect(CAN, 0, &ulChannelID);
PassThruConnect(ISO15765, 0, &ulChannelID);
PassThruConnect(ISO14230, 0, &ulChannelID);
PassThruConnect(ISO9141, 0, &ulChannelID);
PassThruConnect(J1850PWM, 0, &ulChannelID);
PassThruConnect(J1850VPW, 0, &ulChannelID);

2. PassThruDisconnect ends a connection to a protocol channel. The Cancel button closes the
dialog.

PassThruDisconnect(ulChannelID);

3. PassThruReadMsgs has a dialog that allows the user to configure the number of messages
placed in the display area. The number of messages or a Timeout period in milliseconds,
whichever occurs first, will end the Read to the display area. After configuring, select the Read
Msgs button to display the messages read from the vehicle/ECU. The Cancel button closes the
dialog.

PassThruReadMsgs(ulChannelID, ptrMsg, &ulNum, 100);

4 of 8
www.dgtech.com

4. PassThruWriteMsgs has a dialog with a Message drop-down box that allows the user to add
messages to the “Messages to Write” list. This is done by either directly entering the message, or
selecting a previously entered message from the drop-down box. This drop-down box retains the
last ten unique messages entered. The list can be edited with the “Remove From List” button.
While there are messages in the List the” Write Msgs” button shall be enabled. The messages in
the “Messages to Write” list are sent out to the vehicle/ECU when the “Write Msgs” button is
selected. The Cancel button closes the dialog.
ptrMsg=new PASSTHRU_MSG[ulNumMsgs];
for(unsigned int count=0; count<ulNumMsgs; count++)
{
memset(ptrMsg+count, 0, sizeof(PASSTHRU_MSG));

memcpy(ptrMsg[count].Data, ptrTempMsg, size);


ptrMsg[count].DataSize=ulSize;
ptrMsg[count].ExtraDataIndex=0;
ptrMsg[count].ProtocolID=iCurProtocol;
ptrMsg[count].TxFlags=0x00;
}
PassThruWriteMsgs(ulChannelID, ptrMsg, &ulNumMsgs, 10000);
delete [] ptrMsg;

5. PassThruStartPeriodicMsg has a dialog that allows the user to enter the message to be sent out
periodically and its time interval. The Cancel button closes the dialog.
memset(&ptrMsg, 0, sizeof(PASSTHRU_MSG));
memcpy(ptrMsg.Data, ptrTempMsg, size);
ptrMsg.DataSize=ulSize;
ptrMsg.ExtraDataIndex=0;
ptrMsg.ProtocolID=iCurProtocol;

PassThruStartPeriodicMsg(ulChannelID, &ptrMsg, &ulPeriodicID, ulTimerDelay);

5 of 8
www.dgtech.com
6. PassThruStopPeriodicMsg has a dialog that allows the user to enter the periodic message
number, which will identify and stop the periodic message when the “Stop Periodic” button is
selected. The Cancel button closes the dialog.

PassThruStopPeriodicMsg(ulChannelID, 1);

7. PassThruStarMsgFilter has a dialog that allows the user to select a filter type (Pass, Block, or
Flow Control), and then enter a Pattern, a Mask, or a Flow Control Message. The Cancel button
closes the dialog.

memset(&ptrMask, 0, sizeof(PASSTHRU_MSG));
memcpy(ptrMask.Data, ptrTempMsg, size);
ptrMask.DataSize=ulSize;
ptrMask.ExtraDataIndex=0;
ptrMask.ProtocolID=iCurProtocol;

memset(&ptrPattern, 0, sizeof(PASSTHRU_MSG));
memcpy(ptrPattern.Data, ptrTempMsg, size);
ptrPattern.DataSize=ulSize;
ptrPattern.ExtraDataIndex=0;
ptrPattern.ProtocolID=iCurProtocol;

PassThruStartMsgFilter(ulChannelID, PASS_FILTER, ptrMask, ptrPattern, &ulMsgID);

6 of 8
www.dgtech.com

8. PassThruStopMsgFilter has a dialog that allows the user to enter the filter message number,
which will identify and stop the filter message when the “Stop Filter Msg” button is selected. The
Cancel button closes the dialog.

PassThruStopMsgFilter(ulChannelID, 1);

9. PassThruReadVersion will display the firmware version, DLL version, and the API version in the
display area.

PassThruReadVersion(ucFirmware, ucDll, ucApi);


Function returned: STATUS_NOERROR
Firmware Version: 20041216
DLL Version: 4.00
API Version: 04.04

10. PassThruGetLastError will display the last error, if no error a “Function call successful” comment
will be displayed.

Last Error: Function call successful

Or

Last Error: Function not supported

7 of 8
www.dgtech.com
11. PassThruIoctl a dialog that allows the user to select from a list of IO controls (IOCTLS), and
Set/Get their configuration parameter. The Cancel button closes the dialog.

ConfigList.NumOfParams=1;
ConfigList.ConfigPtr=&Config;
Config.Parameter=1;
PassThruIoctl(ulChannelID, GET_CONFIG, &ConfigList, NULL);

Or

ConfigList.NumOfParams=1;
ConfigList.ConfigPtr=&Config;
Config.Parameter=3;
Config.Value=0;
PassThruIoctl(ulChannelID, SET_CONFIG, &ConfigList, NULL);

12. PassThruOpen is the initial function to issue which opens the link to the hardware (Gryphon or
Python).

PassThruOpen();

13. PassThruClose ends the link to the hardware

PassThruClose();

3 Known issues:
1. The Read Messages dialog shows the Timeout as Msecs, it should be msecs –
milliseconds.

2. The function PassThruStartMsgFilter is shown in the display area as


PassThruStartFilter

3. The function GetLastError is not shown in the display area, only the return value.

8 of 8

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy