Moxa DA-662A-16-LX [14/63] Test program developing hello c

Moxa DA-662A-I-8-LX [14/63] Test program developing hello c
DA-662A Series Software Getting Started
2-6
Auto eth0 eth1 lo
iface lo inet loopback
iface eth0 inet dhcp
iface eth1 inet dhcp
3. After the boot settings of the LAN interface have been modified, issue the following command to activate
the LAN settings immediately:
#/etc/init.d/networking restart
NOTE
After changing the IP settings, use the networking restart command to activate the new IP address.
However, the LCM display will still show the old IP address. To update the LCM display, you will need to reboot
the DA-662A series.
Modifying Network Settings over the Network
IP settings can be activated over the network, but the new settings will not be saved to the flash ROM without
modifying the file /etc/network/interfaces.
For example, type the command #ifconfig eth0 192.168.1.1 to change the IP address of LAN1 to
192.168.1.1.
root@Moxa:# ifconfig eth0 192.168.1.1
root@Moxa:/etc/network/#
Test ProgramDeveloping Hello.c
In this section, we use the standard “Hello” programming example to illustrate how to develop a program for
the DA-662A series. In general, program development involves the following seven steps.
Step 1:
Connect the DA-662A series to a Linux PC.
Step 2:
Install Tool Chain (GNU Cross Compiler & glibc).
Step 3:
Set the cross compiler and glibc environment variables.
Step 4:
Prepare the code and compile the program.
Step 5:
Download the program to the DA-662A series via FTP.
Step 6:
Debug the program
If bugs are found, return to Step 4.
If no bugs are found, continue with Step 7.
Step 7:
Back up the user directory (distribute the program to
additional DA-662A series units if needed).

Содержание

Похожие устройства

Скачать