This guide concerns the latest release of the developer board/device server (the unit) software development kit (SDK).
The ethernet address of the unit is the same as its serial number. The serial number is found on the label on the back of the board (on bottom of the casing for units with casing) marked as S/N.
The developer boards/device servers are shipped with ip address 192.168.0.90 assigned to the ethernet interface 0 (eth0) and 192.168.1.90 assigned to ethernet interface 1 (eth1) for thoose products which have a second ethernet interface.
DHCP is enabled by default (Note that this has not always been the case, older version was shipped with DHCP disabled by default) so the unit will dynamically be assigned an IP address if there is a DHCP server located on the same local network segment. Use network monitoring or serial debug (described below) to locate the unit when connecting it to a network.
If a static IP address is needed, e.g. locating the unit or assigning it a temporary address later on intended to be made permanent, it can then be configured by using a combination of ARP and ping command. This is handled by an application called ipsetd that runs as a daemon making it possible during a certain period of time after power up to set the ip address. Note, to do so requires an unique IP address (contact the local network administrator). Once a IP temporary address has been configured the script exits and thus needs to be restarted if the address is to be reconfigured. If the SDK is rebuilt and loaded into the unit, one must make sure that the ipsetd application is included. Otherwise it will not be possible to perform the ARP/ping sequence to temporarily set the ip address as follows:
Start a DOS prompt window
Type the following:
arp -s <IP address> <Ethernet address>
ping -l <length> <IP address>
Example:
arp -s 123.45.67.89 00-40-8c-12-34-56
ping -l 408*) 123.45.67.89
Start a shell
Type the following as superuser (root):
arp -s <IP address> <Ethernet address>
ping -s <length> <IP address>
Example:
arp -s 123.45.67.89 00:40:8c:12:34:56
ping -s 408*) 123.45.67.89
*) The length choosen in the examples above is the number used at the time of writing this document. This might change without notice.
The unit responds to the ping in the examples above if the new address was configured. Note, this method(ARP/ping mehtod above) only sets the IP address temporarily (while the unit is powered). To make the change permanent the ip paramters (IP address, subnet mask and gateway address) must be set in a file on the unit, otherwise the default network settings will be restored again when the board is rebooted and you will have to start all over again.
Note: if you do not succeed in setting the IP address temporarily you can still set it permanently using a serial port (see below).
Once the unit is configured with a temporary IP address (statically or dynamically) it can made permanent by using the one of the following methods (Note, this depends on the SDK configuration) HTTP, telnet, ssh or FTP. If you have not succeded in setting the IP address temporarily you can still login to the board and make a permanent change using a serial connection. The descriptions below concern the ethernet interface 0 (eth0) but the steps are imperative for other network interfaces.
AxisProduct login: root Password: pass
Make sure all settings match the settings of the local network. The NETWORK entry will be used as a route to the local network in the routing table of the kernel. If this does not match the actual address of the local network it will be impossible to reach the unit over the network after reboot. In that case one must login from the serial port, correct the settings and reboot the board (see below).
Another option instead of configuring the IP address by using network access is to connect directly to the unit by a serial cable from a local PC.
Test your configuration by rebooting the developer board and pinging it.
Example: Press and release the reset button on the developer board, wait
for approximately 20 seconds (until the unit is up and running) and
type ping <IP Address> (e.g.
ping 123.45.67.89).
The file How to Install the Developer Board Software contains installation instructions for the development environment. Source code is available at http://developer.axis.com/download.
Subscribe to the ETRAX developer mailing list by sending an e-mail to majordomo@axis.com with subscribe dev-etrax in the message body.
See http://developer.axis.com/ for more information.