Campbell Scientific NL121 NL121 Ethernet Module - Page 20

FTP Server

Page 20 highlights

NL121 Ethernet Module See Web Server API in the contents of the CRBasic Editor help for more information on using HTTP to access datalogger data. NOTE FileOpen() and FileWrite() can be used to create HTML pages, but this requires first writing the file to the datalogger's USR, CRD, or USB drive. It is less convenient, and the page will be only as current as it is written to the file. 6.3 FTP 6.3.1 FTP Server With an NL121 attached, the datalogger will automatically run an FTP server. This allows Windows Explorer to access the datalogger file system via FTP. In the FTP world, the "drives" on the datalogger are mapped into directories (or folders). The "root directory" on the datalogger will include CPU and possibly USR and/or USB. The files will be contained in one of these directories. Files can be pasted and copied to/from the datalogger "drives" as if they were drives on the PC. Files on the datalogger drives can also be deleted through FTP. FIGURE 6-2. FTP root directory 12

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

NL121 Ethernet Module
See Web Server API in the contents of the
CRBasic Editor
help for more
information on using HTTP to access datalogger data.
FileOpen()
and
FileWrite()
can be used to create HTML pages,
but this requires first writing the file to the datalogger’s USR,
CRD, or USB drive.
It is less convenient, and the page will be
only as current as it is written to the file.
6.3
FTP
6.3.1 FTP Server
With an NL121 attached, the datalogger will automatically run an FTP server.
This allows Windows Explorer to access the datalogger file system via FTP.
In
the FTP world, the “drives” on the datalogger are mapped into directories (or
folders).
The “root directory” on the datalogger will include CPU and possibly
USR and/or USB.
The files will be contained in one of these directories.
Files
can be pasted and copied to/from the datalogger “drives” as if they were drives
on the PC.
Files on the datalogger drives can also be deleted through FTP.
FIGURE 6-2.
FTP root directory
NOTE
12