Follow these steps to execute the application in your device:
Open a serial connection using any terminal program such as Tera Term, Minicom, Coolterm, or HyperTerminal. The examples in this documentation use Minicom to work with the device command line.
Use the following settings:
Serial port where the device is connected
Log in to the device. The default login user is root without password. See How to find the IP of your device.
Your device and your host machine must be in the same network.
Transfer the application to your device using SCP in your host computer. If it is the first connection, you are prompted to continue. In this case, type yes and press Enter.
~$ scp hello-world firstname.lastname@example.org:/home/root/ The authenticity of host '192.168.42.30 (192.168.42.30)' can't be established. RSA key fingerprint is 46:91:93:11:31:d1:e0:b4:1e:3a:e9:fd:51:7f:bd:5a. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.42.30' (RSA) to the list of known hosts. hello-world 100% 12KB 11.8KB/s 00:00 ~>
In the device terminal, launch the application you have just transferred. The message "Hello world!" is printed 10 times, one every second.
~# /home/root/hello-world 1 - Hello world! 2 - Hello world! 3 - Hello world! 4 - Hello world! 5 - Hello world! 6 - Hello world! 7 - Hello world! 8 - Hello world! 9 - Hello world! 10 - Hello world! ~#
How to find the IP of your device
You can find the IP of your device with the ifconfig command.
~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:40:9D:98:A6:37 inet addr:192.168.42.30 Bcast:192.168.42.255 Mask:255.255.255.0 inet6 addr: fe80::211:22ff:fe33:2211%lo/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1071204 errors:0 dropped:0 overruns:0 frame:0 TX packets:81475 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:119890110 (114.3 MiB) TX bytes:16714042 (15.9 MiB)
In this example, the target IP address is 192.168.42.30.