Wiki

Case Status
Log In

Wiki

 
Command line Switches
  • RSS Feed

Last modified on 4/17/2020 11:36 AM by User.

Tags:

Command line Switches

The Concept2 Utility can be launched with the following optional command line switches:

-diag

Creates a diagnostic file every time a LogCard file or backup file is read.  The file is saved in the Backup File directory, which defaults to the user's documents directory on the Mac, and the user's document directory\Concept2\LogCard Data on the PC.  The name of the file takes the form "FILEBASENAME yyyy-MM-dd hhmmss diag.txt" where FILEBASENAME is the file name set when the last backup was done.  (Available for Utility versions 6.32 and greater) -> An additional "Diagnostics" tab in the Settings dialog allows the user to save PM memory to a file. (Available for Utility versions 6.33 and greater) -> A pull-down menu allows the user to dynamically change the language on the PM.

When the "-diag" command line switch is entered, language set hot-keys are as follows:
CTRL+0  - default
CTRL+1  - English
CTRL+2  - Spanish
CTRL+3  - French
CTRL+4  - German
CTRL+5  - Italian
CTRL+6  - Dutch
CTRL+7  - Swedish
CTRL+8  - Finnish
CTRL+9  - Danish
CTRL+SHIFT+0  - NOT USED AS IT IS TAKEN BY WINDOWS
CTRL+SHIFT+1  - Portuguese
CTRL+SHIFT+2  - Czech
CTRL+SHIFT+3  - Slovak
CTRL+SHIFT+4  - Russian
CTRL+SHIFT+5  - Polish
CTRL+SHIFT+6  - undefined5
CTRL+SHIFT+7  - undefined6
CTRL+SHIFT+8  - Chinese
CTRL+SHIFT+9  - Japanese

-forceupdate

Overrides version checking when updating PM's, allowing the firmware to be downgraded.  The loader will also be updated during a firmware update.

-versionsfile filename

Causes the LCU to choose an alternate versions file on the Concept2 server.

-screenshots

Enables the LCU to capture and save PM screen shots.   When the feature is enabled, pressing the Ctrl+F11 key on the PC or Command+F11 on the Mac causes the current PM screen to be saved in .PNG format.  If the save was successful, a camera shutter sound is heard.  Note that on Macs, you may have to set the Quicktime preference "Automatically play movies when opened".  On the PC, the files will be saved here: "C:\Users\<USERNAME>\AppData\Roaming\Concept2\Utility\Screenshots".  On the Mac: "HOME DIRECTORY/Library/Application Support/Concept2/LogCard Utility/Screenshots".
This feature works for PM3 versions 100 and above, PM4 versions 19 and above, PM3A/PM4A versions 303 and above.

-displayscreenshots

This switch works only when -screenshots is set.  When a screen is captured, it is also displayed in a window.  Note that the first time the window is created, you may have to click back on the main window to give it focus so that you can do subsequent screen captures.

-rawrestore

(Available for Utility versions 6.31 and greater) Causes the Utility to bypass data validation and repair when restoring data from a backup file, thereby doing a "raw" restore of the backup data.

-onlinelogpage

(Available for Utility versions 6.31 and greater) Overrides the default Online Logbook interface ASP page with one passed in the command line.  Note that there are no spaces allowed in the URL path.  Usage example: -onlinelogpage http://www.concept2.com/sranking03/LogBookServices/logbook3.asp

-forceRowFirmware

-forceSkiFirmware

(Available for Utility versions 6.33 and greater) -> When doing a firmware update for PM3A/PM4A devices, allows you to override the device type and force an update of Row or Ski firmware.  For example a ski erg can be changed to a row erg and vice versa.
 

BackupFilePathName

Allows you to enter an optional backup file path/name, which causes the LCU to go to the "Transfer Backup File" page with the file path/name populated in the Backup File edit field.

ArchiveFilePathName

(Available for Utility versions 6.35 and greater) Allows you to enter an optional archive file path and name (.7z extension), which causes the LCU to prompt the user to OK programming the firmware files included in the archive.  Entering an archive name on the command line also puts the Utility in "Auto Update Mode" which causes it to automatically start the programming process when subsequent units are connected.  Auto Update Mode can be toggled using the key sequence CTRL+SHIFT+U.

 

Command Line Switch Usage on PC:

Create a shortcut to the LogCard Utility application, then edit the shortcut properties and change the Target field.  Example: "C:\Program Files\Concept2\Concept2 Utility\Concept2 Utility.exe" -diag  -screenshots -displayscreenshots.  Note the placement of the quotes.

Command Line Switch Usage on Mac:

1. Make sure you have the LCU installed in the Applications folder.
2. Open a terminal window.
3. Example: In the terminal window, type "/Applications/Concept2 Utility.app/Contents/MacOS/Concept2 Utility" -diag -screenshots -displayscreenshots.  Note the placement of the quotes.

Can make a "Script" as follows:

Launch terminal. 

Touch C2Utility.command

pico C2Utility.command

#!/bin/sh
open -a "/Applications/Concept2 Utility.app/Contents/MacOS/Concept2 Utility" --args -diag -forceupdate -versionsfile pma_versions_test.txt

ctrl-O <enter>

ctrl-x

chmod 777 C2Utility.command

> Now this should run as an application

 

 

This article has not been written.