background image

User Guide USB Stick CopyStation 

21

Ultra – 1.3

23

User Guide USB Stick CopyStation 

21

Ultra – 1.3

22

6.3 Software interface for e.g. external serialization

6.3.1 General Description

The USB Stick CopyStation 

21

Ultra has an optional software interface for data exchan-

ge 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.

31AL1864

).

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 CopyStation 21 Ultra

Page 1: ...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 altec cs...

Page 2: ...GmbH disclaims all other warranties express or implied In no event shall altec ComputerSysteme GmbH be liable for any damages whatsoever including without limitation damages for loss of business profi...

Page 3: ...ual serial numbers or applying data encryption Software interface for e g external serialization 31AL1864 2 Software option for creating and copying smaller image files This allows pro gramming to tak...

Page 4: ...be shown the login dialog box see figure The default user name and password to log in as the administrator is admin and admin The default user name and password to log in as a normal user is user and...

Page 5: ...ents and 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 cr...

Page 6: ...onto 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...

Page 7: ...se the 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...

Page 8: ...ng it 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 fre...

Page 9: ...the program 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...

Page 10: ...he 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 ware fe...

Page 11: ...the tab 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...

Page 12: ...ogramming 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 individualizati...

Page 13: ...you must check the Allow smaller image file checkbox in the Extended Settings tab of the JobWizard see figure right and Chapter 4 2 On the destination USB sticks the addi tional storage capaci ty whi...

Page 14: ...on software needs to have 21 unused drive letters for the 21 USB stick slots Each slot needs its own drive letter Assignment of the CopyStation drive letters may not take place correctly ifWindows Exp...

Reviews: