background image

User Guide USB Stick CopyStation 

21

– 1.3

23

User Guide USB Stick CopyStation 

21

– 1.3

22

6.3 Software interface for e.g. external serialization

6.3.1 General Description

The USB Stick CopyStation 

21

has an optional software interface for data exchange

with an external application to allow customization of individual memory sticks.

This can be used for a serialization of sticks to protect stick contents such as data files

or programs against unauthorized duplication or usage.

USB Sticks have individual serial numbers in most cases, although these can also be

missing.

If the target application allows to read out this serial number, the application can

check, whether this is an authorized copy or not.

This feature is only available if you have purchased the software option "Serialization" 

(Item no.

31AL1854

).

6.3.2 How it works

When this software feature is activated, each memory stick will be shown as logical

drive under Windows XP after it has been programmed and as the case may be has

verified the content, and an external software program is started (see figure below).

Serial number and

logical drive letter of

each memory stick

are passed on to this

program. Please note:

not every memory

stick has an individ-

ual serial number. In

cases with no serial

number, a series of

zeros is transferred.

The external soft-

ware needs to be pro-

grammed by the cus-

tomer according to his needs. This programming can also be done by altec’s

Development Divsion. For instance this program could create specific data files, which

are then copied to the individual memory stick.

This allows an individualization of each memory stick ’s content.

6.3.3 Accessing the memory stick through filesystem calls

When the memory stick has been mapped to the logical drive, the external patch

application can communicate with the memory stick.

The application can use the standard operating system file system calls like fopen()

fread() fwrite() …. With these calls, the application has full access to all files and 

subdirectories which reside on the stick. In addition, using special fopen() calls, the

application has also full access to any data on the stick, starting from the first and

ending on the last storage block of the stick.

Example

The example shows, how to access the USB stick through the standard operating

system file system calls.

In this example, the serial number, which is given as a parameter to the application, is

written to a text file named CID.BIN to the USB stick. The name of the logical drive is

taken from the second parameter.

#include "stdio.h"
#include "stdlib.h"
#include "string.h"

int main(int argc, char* argv[])
{

char v_drive_letter, filename[256];
FILE *f1;
int retcode=0;

if (argc == 2)  {

// Please note: argv[1] = drive letter   and   argv[0] = serial number

v_drive_letter = argv[1][0];

// get the drive letter from 2nd parameter

sprintf(filename,"%c:\\CID.BIN",v_drive_letter);
f1 = fopen(filename,"w+");

// open a file on the Virtual Drive and 

fwrite(argv[0],1,strlen(argv[0]),f1);

// write the serial number.

fclose(f1);

}
else 

retcode = 1;

// inavlid numer of parameters

return retcode;

}

Summary of Contents for USB Stick CopyStation 21

Page 1: ...lease contact our service department and ask for technical advice If you do not do this your guarantee rights may be impaired Support hotline Monday to Friday Phone 49 511 98381 70 or eMail support al...

Page 2: ...ComputerSysteme GmbH be liable for any damages whatsoever including without limitation damages for loss of business profits busi ness interruption loss of business information or other pecuniary loss...

Page 3: ...ed e g by assigning individual serial numbers or applying data encryption Software interface for e g external serialization 31AL1854 2 Software option for creating and copying smaller image files This...

Page 4: ...ns You can only open and run existing copy jobs After successful user login the following program window appears see figure on the next page 2 Installing the USB Stick CopyStation 21 2 1 Installing th...

Page 5: ...nd create the image file Progress is shown in the main window using a progress bar see figure on next page The color of the chosen slot changes to yellow slot is busy The image has been fully created...

Page 6: ...which you want to copy Choose Create Image in the Execute menu This opens the Create Image Options dialog box If you check the Create short image checkbox the CopyStation software will create a normal...

Page 7: ...file extension job Click Save to save the file 4 3 Creating a copy job Choose New Job in the File menu to create a new copy job with the Job Wizard In the Job Wizard clicking the Select button see fi...

Page 8: ...with a new name Then choose Job Settings in the File menu to modify the job and confirm by click ing OK 4 4 Starting a copy job Remove the master memory stick from the CopyStation and insert fresh mem...

Page 9: ...ogram New Job creates a new job Choose an image file in the Job Wizard see page 12 Choose the number of copies you want to produce see page 12 Click the Extended Options tab if you want to carry out v...

Page 10: ...If the master source memory media is only partly filled with user data the resulting smaller image files allow faster programming of the target memory media Detailed information on using this soft war...

Page 11: ...b Extended Options you will be able to adjust further settings see page 13 Click the OK button and enter the required name and location for the job file in the Save As dialog box which is shown see pa...

Page 12: ...can also be done by altec s Development Divsion For instance this program could create specific data files which are then copied to the individual memory stick This allows an individualization of each...

Page 13: ...lution The storage capacity of the master source USB stick should normally be identical to the storage capacity of the destination USB sticks User Guide USB Stick CopyStation 21 1 3 24 6 3 4 Requireme...

Page 14: ...sure that they all have exactly the same capacity See Chapter 5 5 for information on how to do this Check the exact size in bytes which is shown in brackets the size which is shown in MB is not accur...

Reviews: