[Previous] [Next] [Contents]

3. ADDITIONAL FAQ

 

3.1 DATA TRANSFER FAQ

A. Data tranfer using Serial cable(RS232C)

Step 1. Setup MITs i519
Before you use minicom you MUST choose PDA in UART check box, otherwise sending and receiving of data between HostPC and i519 will not be functional.
Please follow the instruction as below.

  • Go "Setting (Tab) -> Sync Setup (Icon)" then setup UART to PDA. Clicking [X],

  •    

    If you followed the instruction then you can execute minicom right away. We recommend you to give command as below since ‘-s’ variable will show available configurations of minicom.

    # minicom –s

  • Then move to "Serial Port Setup" Press [Enter]

  • Change values as below. If you want to change a part, press [a] key. The focus will move to edit-field.
  •    

  • If all setting variables are changed as picture shown, escape from here by [Esc] key.

  • Move to "Save setup as dfl" and press [Enter]. Newer setup configuration has been saved.

  • Now you finished minicom setting therefore you need to move down to "Exit" to start minicom.

  • Execute minicom. You can execute this by following command.

  • # minicom

     

  • Press [Enter]. You can see the console of i519 as picture shown.
  •    

  • Let's transfer data(davinci.txt) to i519.

  • We will download the file into /usr/home/Documents directory of i519, so move to there and type following command.

  • # cd /usr/home/Documents

     

    # rz

  • Once you typed command, then quickly press "[Ctrl]+[a]" and "[s]". Then select "Z-modem".
  •    

  • "rz" means that i519 will receive data by Z-modem.

  • A window will appear. It shows directory structure of your host PC. You can move to directory by double-clicking [space-bar], and select files by single-clicking [space-bar]. i.e., Multi-select is possible.

  •    

  • Select file that you want to transfer, then press [Enter]. The transfer progress will be shown.

  • Check whether davinci.txt is successfully downloaded or not.

  • Step 2. Upload data to host PC

    Let's send the file (SDC0000*.jpg) from i519(/usr/home/Documents/photo) to your host PC. Move to the directory.

    # cd /usr/home/Documents/photo

    Before you upload file, decide target directory of host PC that you want to put the file.

  • Without any command, press "[Ctrl]+[a]" and "[s]". Move to the directory and escape the window by [esc] key.

  • Now upload the data ( SDC0000*.jpg files) by following command.

  • # sz SDC0000*.jpg
  • The transfer progress will be shown. Check whether SDC0000*.jpg is successfully uploaded or not.
  •  

    Step 3. Quit

  • To quit minicom, press "[Ctrl]+[a]" and "[q]".

  • B. Data transfer using USB cable

    Step 1. Setup

    Likewise serial cable, USB cable MUST be controlled by PDA. Therefore you need to take following indications;

  • Go "Setting (Tab) -> Sync Setup (icon)" and then setup USB to PDA.

  •    

    Redhat Linux supports USB Ethernet by default.
    When you connect the cable to PC, the Linux notices the interface and then loads "CDCEther" module.
    You can check or find whether the module is uploaded or not, by following command in Linux HostPC.

    # lsmod

    i519 is ready to connect PC by default. E.g.: i519 has assigned IP 192.168.129.2 to "usbf"(USB Ethernet) by default.
    Following command in PDA will show you active network configuration.

    # ifconfig

     

       

    Now assign appropriate IP to USB Ethernet in Linux HostPC. Follow command will connect HostPC to i519.

    # ifconfig eth1 192.168.129.1 up

    You can verify whether the cable is connected properly and network is active.

    # ifconfig

     

       

    All procedures for connecting i519 to the Linux HostPC are finished. The command as below checks current status.

    (at host PC)

    # ping 192.168.129.2

    (at i519)

    # ping 192.168.129.1

     

    Step 2. Download data to i519 through "wget" application

  • "wget" is included at /bin/wget directory of i519.

  • If you install ftp application or web server on your HostPC, i519 can get data from HostPC with higher transfer rate.
    Or you can transfer to /var/www/html when using webserver(HTTP), or /var/ftp/pub when using ftp(FTP) vice-versa.

    Step 3. Using HTTP

    Send command at host shell

    [root@mapae root]# mv davinci.txt /var/www/html

    Send command at the shell that executes minicom

    # cd /tmp
    # wget http://192.168.129.1/davinci.txt (When you use the file name without change)
    # wget http://192.168.129.1/davinci.txt -O leonardo.txt (When you want to change the file name to leonardo.txt)

     

    Step 4. Using FTP

    Send command at host shell

    [root@mapae root]# mv davinci.txt /var/ftp/pub

    Send command at the shell that executes minicom

    # cd /tmp
    # wget ftp://anonymous:tt@192.168.129.1/pub/davinci.txt

     

       

     

    Step 5. Sharing file system between HostPC and i519 via NFS

    If you installed Redhat Linux 8.0 on your HostPC, then applications will be installed by default.
    However let’s double check whether following applications are exist.

    nfs-utils-1.0.1-2.rpm
    portmap-4.0-46.rpm

  • If above applications are not installed yet, please install.
  • NFS server daemon refers the file of "/etc/exports" to know whether client has permission to shared directory. Change the file according to your favorites.


  • share-directory         client1(options)        client2(options)
    /usr/home/Documents     192.168.129.2(rw,no_root_squash)

    [Note]
    - rw : "read & write" permission are given
    - no_root_squash : root account of client has the same authority of that of server.

  • When you boot Redhat Linux 8.0, portmap application will be executed on default but NFS is not.
    Your PC can be NFS server after execute NFS. Start it by following command.
  • # /etc/init.d/nfs start

    Instead of using NFS client, you can mount a directory of NFS server to i519. This is easier than using NFS client, however you need to deactivate firewall in HostPC.
    Refer following example to deactivate firewall.

    # setup

    Select the second item "Firewall Configuration". Selection key is [space-bar].
    Then change the "Security level" to "No firewall".
    Escape the window by pressing "OK" and "Quit".

       

  • Lets mount "/usr/home/Documents" directory of HostPC to "/mnt/PC" directory of i519.
  • # mkdir /mnt/PC
    # mount -t nfs 192.168.129.1:/usr/home/Documents /mnt/PC

  • If any error message is not shown, NFS mount is done correctly.

  • Now i519 can get data from HostPC by regarding Linux command such as copy, move.
  •  

     


    [Previous] [Next] [Contents] MIZI Prizm 2.0.0