Skip to main content

File Transfer

  1. File transfer using LuckFox Pico Pro/Max with a static IP:

    • The development board's IP address is 172.32.0.93.

    • Open the terminal, cd to the file's location.

    • Transfer files to the /root directory on the development board using SSH.

      # Transfer a file
      scp ssh-test.txt root@172.32.0.93:/root
      # Transfer a folder
      scp -r ssh-test root@172.32.0.93:/root
    • Confirm with "yes" for the first connection, then enter the password "luckfox" to start the transfer.

  2. File transfer using LuckFox Pico Pro/Max with a dynamic IP:

    • Ensure that the development board is connected to the internet.

    • The development board's IP address can be obtained through methods such as logging into the router, using LAN IP scanning tools, serial debugging, or ADB.

    • If the development board's IP address is 192.168.10.116.

    • Open the terminal, cd to the file's location.

    • Transfer files to the /root directory on the development board using SSH.

      # Transfer a file
      scp ssh-test.txt root@192.168.10.116:/root
      # Transfer a folder
      scp -r ssh-test root@192.168.10.116:/root
    • Confirm with "yes" for the first connection, then enter the password "luckfox" to start the transfer.

      windows:

      virtual machine:

  1. File transfer usingLuckFox Pico Pro/Max with a static IP:

    • The development board's IP address is 172.32.0.93.

    • Press Win + R, enter \\172.32.0.93 in the Windows address bar.

    • Use "root" as the username and "luckfox" as the password.

    • Connection successful.

    • Drag the file to the desired directory to complete the transfer.

  2. File transfer using LuckFox Pico Pro/Max with a dynamic IP:

    • Ensure that the development board is connected to the internet.
    • The development board's IP address can be obtained through methods such as logging into the router, using LAN IP scanning tools, serial debugging, or ADB.
    • If the development board's IP address is 192.168.10.116.
    • Press Win + R, enter \\192.168.10.116 in the Windows address bar.
    • Follow the same steps as static IP file transfer thereafter.
  1. Connect the development board to your computer via a USB interface and upload files or folders from your PC to the root directory of the development board.

    adb push .\adb-test.txt /  # Upload a file
    or
    adb -s 172.32.0.93:5555 push adb-test.txt /

    adb push .\adb-test\ / # Upload a folder
    • The effect is as follows:
  2. Download the test_file.txt from the /userdata directory of the development board to your PC.

    adb -s 172.32.0.93:5555 pull /userdata/test_file.txt test_file.txt

TFTP File Transfer

  1. File transfer with static IP for LuckFox Pico Pro/Max:

    • The IP address of the development board is 172.32.0.93, and the server's IP address is 172.32.0.94 (please adjust based on your actual configuration of the RNDIS virtual network interface).

    • Download the portable Tftpd (no installation required). Simply extract the package and choose the directory you want to transfer files from in the Current Directory field.

    • Perform file transfer using TFTP.

      # Download files from the PC-side TFTP server to the development board
      tftp 172.32.0.94 -g -r tftp_get.txt
      tftp 172.32.0.94 -g -r sysfs_gpio

      # Upload files from the development board to the PC-side TFTP server
      tftp 172.32.0.94 -p -l tftp_push.txt
  2. File transfer with dynamic IP for LuckFox Pico Pro/Max

    • Ensure that the development board is connected to the internet.

    • The development board's IP address can be obtained through methods such as logging into the router, using LAN IP scanning tools, serial debugging, or ADB.

    • In the following steps, the IP address of the development board is 172.32.0.93, and the server's IP address is 192.168.10.127.

    • Transfer files through TFTP.

      # Download files from PC-side TFTP server to development board
      tftp 192.168.10.127 -g -r tftp_get.txt
      tftp 192.168.10.127 -g -r sysfs_gpio

      # Upload files from development board to PC-side TFTP server
      tftp 192.168.10.127 -p -l tftp_push.txt