WAGO 750 Series Manual page 183

Linux fieldbus coupler
Hide thumbs Also See for 750 Series:
Table of Contents

Advertisement

The function
Ethernet device eth0. It is irrelevant whether the address was assigned
dynamically, for example via DHPC, or if it is a fixed IP address.
main_info()
to the standard console stdout.
Source code description: ether.c
The TCP/IP configuration page of the Linux fieldbus coupler is generated in
the ether.c file. The file includes five functions:
The static HTML code is stored in the string
dynamic values "%s" being replaced by a variable value directly in the
command.
The function
sector. If a fixed IP address is used, these are the IP address, the subnet mask,
the gateway and the host name. If the IP address is assigned dynamically via
DHCP or BootP it is only the host name. The other values are set to default
values.
The function
sector. If a fixed IP address is used, these are the IP address, the subnet mask,
the gateway and the host name. In case of a dynamic IP address assignment
via DHCP or BootP only the host name is saved. The other parameters keep
their old values. All parameters are entered as a string into the environment
variable ipmode which belongs to the start parameters of the Linux kernel.
These environment variables are in the highest flash memory sector and are
read by the boot loader (U-Boot).
read_file()
/etc/resolv.conf file.
The function
the /etc/resolv.conf file.
WAGO-I/O-SYSTEM 750
Linux Fieldbus Coupler
read_IP()
calls the above-mentioned functions and writes the HTML code
read_envvar()
write_envvar()
read_file()
write_file()
main_ether()
read_envvar()
write_envvar()
reads the IP addresses of the name servers from the
write_file()
Example Program for a CGI Application
reads the IP address that is currently used from the
pucHtmlEthernet[]
reads values from the highest flash memory
writes values into the highest flash memory
writes the IP addresses of the name servers into
Application Examples • 179
, the
printf

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

750-860

Table of Contents