Casio PA-2400W manual Command of Fchkce 1Generation of List File

Page 74

8.6 Command of FCHKCE

8.6.1￿Generation of List File

If the names of files to be transferred (copied) from PA-2400W are specified, this command will create a list of files to be transferred (copied) and a list file that contains the checksum data calculated from all the files to be transferred. Furthermore, the checksum data of this list file is also generated. The name of

￿a list file created with this command is set to "FCHK.LOG".

If the list file is successfully created, a return value “0” will be passed to this command as the program termination code. If list file creation fails, this command receives a return value that is not "0" and is abnormally terminated. In either case a history file is generated.

￿(FCHKG.HIS is created in [FCHK.LOG File output Directory name]).

The history file is generated to track the process of creating a list file. The user must transmit (copy) the list file generated by this command to the partner station (child machine side) when performing any file

￿transfer (file copy).

Information to be set in the list file includes:

1)File size

2)Date and time of update

3)Transfer (copy) destination pathname (file name)

4)Number of transferred (copied) files

5)Checksum data of all the transferred (copied) files

￿6) Checksum data of list file

The checksum data of all the transferred (copied) files consists of the result in which each piece of double-word data in all the objective files is XORed sequentially from beginning to end. However, the checksum data of a list file is generated to obtain the sum of each double-word contained in the list file, then a value is calculated that offsets the sum to zero. Use this offset value as

￿the checksum data.

The checksum data will be outputted as a list file as follows:

FILE_CHECKSUM=HHHHLLLL ( HHHH: HIGH-WORD / LLLL: LOW-WORD )

LIST_CHECKSUM=HHHHLLLL ( HHHH: HIGH-WORD / LLLL: LOW-WORD )

If an error occurs while generating the checksum of the list file (FCHK.LOG) which has already been generated, the list file will be aborted. However, a generated list file will not be deleted even if an error occurs during the analysis of command parameters.

74

Image 74
Contents PA-2400W Library Manual VersionTable of Contents Fchkce /G Fchkce /C Preface CasioSystem Library Bootup LibrarySupported Files SIPanel LibrarySystem configuration Host PC PA-2400W CopySIPanel Library 3 I/O Bootup LibraryDedicated Library and Utility System Library File Transfer Utility File Check UtilityDevelopment Environment System Library Overview Parameters None Return Values Details of FunctionTitle Function Header #include CasioSys.h RemarksTurns off the backlight Language Interface Calling Sequence False TrueBacklight is on Backlight is offHeader #include CasioSys. h Remarks DisablePowerOff Bool EnablePowerOff Header Disable the power to be turned off with the power buttonEnable the power to be turned off with the power button Bool ApoCountReset Void SoftReset Language Interface Calling Sequence Disables automatic power-on with the alarmInternal error Parameters Bool bModeBool GetPowerOnAlarm Default Sample program to acquire power-on event notification Bool GetPowerEventStat SIPANEL.EXE SIPanel Library OverviewSIPANEL.DLL Program for starting up the library Use of SIPanel LibraryRestrictions RegistryLpctstr lpParam Sipshow SiphideSample program to start up the SIPanel Hinstance LptstrTchar ClassNameTSR = TEXTSipTsr Sample program of application software for business useTchar ClassName = Text CallSip HbCallText = CreateWindow TEXTbutton, TEXTText AreaLpCmdLine HWnd = CreateWindowClassName, ClassNameWsvisible Wsoverlapped Wssysmenu Find SipTsr Sw,h Options of Command LinePx,y IOBOX1.DLL O Bootup Library OverviewFunction Port294,967,295 msec. equals to Infinite Infinite = No timeoutDword Fail to call the functionUse of ioboxchk Sequential ModeMultiple-Thread Mode = Null Sample ProgramHwnd WINDOWHEIGHT/2 WsoverlappedWINDOWWIDTH/2 NullCase Wmpaint Wait for 5 seconds Registry of Libraries Disable the power on by alarmEnable the power on event notification IrDA 1.0 Interface File Transfer Utility OverviewRS-232C Interface List of Supported Commands Operation Use of FlceTermination of Flce Input ParameterRestrictions Types of Arguments Communication CommandsOptions OverwriteMethod of Describing Pathname Reference Storage Card PC card My Documents Internal RAMDOS Windows95 /Windows NT Required Error if omittedSpecifying Non-existing File Windows CESetting Up Registry Setting Up ItemsLong lReg1 Setting Up Registry with User ApplicationHkey hKey1 Dword Disp1Err=FALSE Else If err==TRUE Return errTermination Codes Should take an action that is appropriate to each definitionError Code Meaning Possible Cause Remedy Location of Log File Log FileLog File Name Method of Creation12Precautions Details of Command and Option Flce /S \casio\*.dat d\casiodat\ Transmission file pathnameDestination directory pathname Flce /SR \casio\*.dat d\casiodat\\12\*.dat d\casio\*.* \casio data\ PathnamePathname of requested file Flce /RR a\12\*.dat d\casio\*.* \casio data\Flce /A \MY\casio.dat b\your\master.dat Appended file pathnameTarget file pathname Pathname of file to be deleted Without the R option Flce /N a\ 12\kk.dat a\casio\ Source pathnameDestination pathname Flce /N a\12\kk.dat a\casio\sj.datParameters None SetupExample Flce /SR \casio ap\*.* \casio ap\ /TFlce /Y=COM1, , casio.scr Session with PCFlce casio.scr Session between PA-2400W-and-PA-2400WCommand and Status Idle notificationPreparation at PC Retry Process When Downloading FileRetry Method \soft\Retry.scr RestrictionPreparation at PA-2400W List of Commands File Check Utility OverviewOperation Operation MethodDownloading file from PC to PA-2400W Copy PC card Copying file with PC card from PA-2400W to PA-2400W Transmission side PA-2400W Describing Method 1Pathname Examples of Correct Startup Details about Command and OptionExamples of specification for command and option Example of Incorrect Startup no /G or /C optionCommand of Fchkce 1Generation of List File Comparison by List File Example \AP\MENU.EXE 12345 \CONFIG.SYS 1000 \AUTOEXEC.BAT 512Format of List File FILENO=3Syntax Analysis of Script File Childproccmd = COption = Recursiveoption Updateoption Recursiveoption = R Error Messages/Codes Restriction AO Append output Option /SCSpecification of a script file nameSpecification of recursive call File name list or Script file name\casio\ .dat \casio data\ \casio\ Destination directory nameFCHK.LOG file output directory name Fchkce /G /R \casio\ .dat \casio data\ \casio\FCHK.LOG file pathname Does not compare the update dataOption Fchkce /C \casio data\