Help Center/ Atlas 300 Application (Model 3000)/ IDE-daemon-client Command Reference/ Transferring a File to the Device by Using IDE Daemon
Updated on 2022-03-13 GMT+08:00

Transferring a File to the Device by Using IDE Daemon

Function

Transfers a file to the device by using IDE Daemon

Syntax

IDE-daemon-client --host <host_ip>:<port> [--device <deviceID>] --file <source_dir> <dest_dir>

Parameter

Table 1 Parameter description

Parameter

Description

Mandatory or Not

Default Value

--host

  • host_ip: specifies the IP address of the host.
  • port: specifies the port number.

Yes

The default value of port is 22118.

--device

If the host is connected to multiple devices, you can specify a device by using --device deviceID. If the device is not specified, the device with deviceID of 0 is used by default.

No

The default value of deviceID is 0.

--file

  • source_dir: specifies the directory of the source file on the IDE Daemon server. The value includes the file name.
  • dest_dir: specifies the directory of the destination file on the device, including the file name. dest_dir must be specified. Otherwise, the command fails to be executed. The file path must be a directory in /home/HwHiUser/hdcd. You only need to specify the relative path in the command. For example, if the destination file path is /home/HwHiUser/hdcd/ide_daemon/B.java, you only need to set file to ide_daemon/B.java in the command.

Yes

-

Example

  1. Log in to the server on the host as the HwHiAiUser user.
  2. Run the following command to transfer the A.java file to the device and save the file as B.java:
    IDE-daemon-client --host xx.xx.xx.xx:22118 --file /tmp/A.java "ide_daemon/B.java"

    Replace xx.xx.xx.xx with the actual IP address of the host.