openharmony 鸿蒙 kernel-small-debug-shell-net-tftp

2022-08-09 浏览 (836)

tftp

Command Function

Trivial File Transfer Protocol (TFTP) is a protocol in the TCP/IP protocol suite for transferring files between clients and servers. TFTP provides simple and low-overhead file transfer services. The port number is 69.

The tftp command is used to transfer files with a TFTP server.

Syntax

./bin/tftp <-g/-p>-l[FullPathLocalFile] -r [RemoteFile] [Host]

Parameters

Table 1 Parameter description

ParameterDescriptionValue Range
-g/-pSpecifies the file transfer direction.
- -g: obtains a file from the TFTP server.
- -p: uploads a file to the TFTP server.
N/A
-l FullPathLocalFileSpecifies the complete path of a local file.N/A
-r RemoteFileSpecifies the file name on the server.N/A
HostSpecifies the server IP address.N/A

Usage Guidelines

  1. Deploy a TFTP server on the server and configure the TFTP server correctly.

  2. Use the tftp command to upload files from or download files to an OpenHarmony board.

  3. The size of the file to be transferred cannot exceed 32 MB.

    NOTICE
    TFTP is used for debugging and disabled by default. Do not use it in formal products.

Example

Download the out file from the server.

Output

OHOS # ./bin/tftp -g -l /nfs/out -r out 192.168.1.2
TFTP transfer finish

After the tftp command is executed, TFTP transfer finish is displayed if the file transfer is complete. If the file transfer fails, other information is displayed to help locate the fault.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Kernel

harmony 鸿蒙Kernel Coding Specification

harmony 鸿蒙Standard Libraries

harmony 鸿蒙Interrupt Management

harmony 鸿蒙Event

harmony 鸿蒙Mutex

harmony 鸿蒙Queue

harmony 鸿蒙Semaphore

harmony 鸿蒙Doubly Linked List

harmony 鸿蒙Memory Management

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/0af6df8aa2954c36b653caf3c76469cf