.:tutorialsM300FTP:home

From ADPAA
Revision as of 11:30, 12 December 2024 by Daviddelene (talk | contribs)
Jump to navigation Jump to search

Tutorial: Transferring Files using FTP

To transfer data from the M300 Data Acquisition System to another computer is possible using the FTP protocol (network port 21). The M300 will be referred to as the "client" and the other computer is the "server".

Server Configuration

We will use a Linux computer for the FTP server. See set-up-an-ftp-server for information on setting up vsftp on Ubuntu Linux.

To test that the vsftp server is installed:

 which vsftpd
 /usr/sbin/vsftpd

To check that the vsftp server is running and the ftp port is open, locally:

 nmap -p 21 localhostStarting Nmap 7.80 ( https://nmap.org ) at 2024-12-12 04:55 CST
 Nmap scan report for localhost (127.0.0.1)
 Host is up (0.00014s latency).
 PORT   STATE SERVICE
 21/tcp open  ftp

To check that the vsftp server is running and the ftp port is open, remotely:

 nmap -p 21 999.999.999.999
 Nmap scan report for 999.999.999.999
 Host is up (0.21s latency).
 PORT   STATE SERVICE
 21/tcp open  ftp

where 999.999.999.999 is the IP address of the vsftp server.

Client (M300) Configuration

To test the ftp client is installed on the M300 system

 which ftp
 /usr/ucb/ftp

Transfer Data on Local Network

Check that the network is up on the M300 system, which has an IP address of 192.168.125.225

 ping 192.168.125.225
 PING 192.168.125.225 (192.168.125.225): 56 data bytes
 64 bytes from 192.168.125.225:  icmp_seq=0 ttl=255 time=0 ms 
 64 bytes from 192.168.125.225:  icmp_seq=0 ttl=255 time=0 ms
 64 bytes from 192.168.125.225:  icmp_seq=0 ttl=255 time=0 ms