PCAN-Diag Download Tool

Handheld CAN Bus Diagnostics Unit - Version 1
Post Reply
User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

PCAN-Diag Download Tool

Post by PEAK-Support » Wed 8. Dec 2010, 13:07

Sometimes it is very usefull to save the Scope-Screen or the Scope-Data for documentation on a PC.
With the older Version 1 of the PCAN-Diag without USB (the new Version 2 with a USB Memory Interface is available since 03/2011) it is possible to transfer these files to a PC via CAN.

What you need
  • PCAN-Diag with Firmware 1.3.10 or higher
    (if you need to update see: http://www.peak-system.com/forum/viewto ... ?f=38&t=51)
  • the PCAN-Diag Download Tool (is part of the Firmware Update package - see above)
  • a PEAK PC-CAN Interface - the Tool support USB/PCI/PCCard based CAN Interfaces from PEAK
  • a CAN cable to connect the PCAN-Diag to the PC-CAN Interface
  • Set the value of the Scope Settings entry "Enable Data-Readback" to Yes to enbale this function.
Measure the Information
First connect the PCAN-Diag to your CAN System and measured the CAN Frame (in Scope mode) until you have the screen you like to export to the PC.

Transfer the Date:
After that you need to connect your PC with a 1:1 CAN connection to the PCAN-Diag.
Be sure that the cable is terminated or you have switch on the tetermination in the PCAN-Diag.
Check the Baudrate which is selscted in the PCAN-Diag.
After that you could start the PCAN-Diag Upload Tool with the needed Parameters
Start with parameter "help" to see all features:

Code: Select all

------------------------------------------------
           PCAN-Diag Upload Tool
           (c)2010 PEAK-System Technik GmbH
           Version 1.01
-------------------------------------------------
usage:
DiagScreenDownload [device] [baudrate_index/btr0btr1] [datatype] [delay] [mode]
Device: usb1 | usb2 | pci1 | pci2 | pcc1 | pcc2

Baudrate_index:
0: 1MBaud
1: 500kBaud
2: 250kBaud
3: 125kBaud
4: 100kaud
5: 50kBaud
6: 20kBaud
7: 10kBaud
8: 5kBaud
or BTR0BTR1 in HEX like 0x001C -> 500K

datatype:
1: Bitmap file
2: CSV Data file

delay:
0ms to 10ms for communication delay

mode:
1: user input required
2: batch mode

samples:
DiagScreenDownload usb1 1 1 5 1
Create a Bitmap and use CAN-USB Channel one with 500k, save a Bitmap, delay is 5ms work in user mode

DiagScreenDownload usb2 0x001c 2 2 2
Create a Bitmap and use CAN-USB Channel one with 500k, save a CSV, delay is 2ms work in batch mode
press any key to close[/color]
The files will be stored directly in the directory where the PCAN-Diag Upload Tool was started.

The Bitmap mode save a BITMAP with the screen of the scope
PCAN-Diag-Scope-Screen
PCAN-Diag-Scope-Screen
Wed Dec 08 12_04_39 2010.gif (6.21 KiB) Viewed 7619 times
The CSV mode store a CSV File which could be open with EXCEL or OpenOffice.
It is very simple to generate a graphic with the Office functions.
The size of the CSV file is depending of the selected Sample buffer size inside the PCAN-Diag (see Scope/Settings menu) It stores the real Voltage information of the CAN-H and CAN-L as Text.
PCAN-Diag-CSV-Excel-Import
PCAN-Diag-CSV-Excel-Import
PCAN-Diag-CSV-Sample-Excel.JPG (101.38 KiB) Viewed 7619 times
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply