
Chapter 18. TCP/IP
467
■
Data Files
Determine MEM from the field lengths and number of records.
BPR = bytes per record = (number of fields) + (sum of field lengths)
RPB = records per block = ROUND_DOWN (4096
÷
BPR)
MEM = ROUND_UP (records
÷
RPB)
×
4096
Example: File with 1000 records with four fields of lengths 13, 12, 6, and 1
BPR = 4 + (13 + 12 + 6 + 1) = 36
RPB = ROUND_DOWN (4096
÷
36) = ROUND_DOWN (113.778) = 113
MEM = ROUND_UP (1000
÷
113)
×
4096 = ROUND_UP (8.850)
×
4096
= 9
×
4096 = 36,864
[ 4 ] Optimizing Drive (Recommended)
File system delays can sometimes retard file FTP downloads. The surest way to prevent such
delays is to use a BHT-BASIC
OUT
statement to optimize the drive.
Another reason for recommending this step is that it reduces air time, the period that the
spread spectrum communications device is open.
[ 5 ] FTP Transfers
The following is the basic procedure for transferring files with the
FTP.FN3
extended func-
tions.
(1)
Open an FTP client session with function #1 or #2.
(2)
Verify the FTP server current directory with function #4 or #5, if necessary.
(3)
Download and upload files with functions #6 and #7.
(4)
Close the FTP client session with function #3.
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...