The networking configuration file is located at /etc/network/interfaces. This file is loaded when a network interface is brought up.
This file will be automatically overwritten by either the Network Setup utility in G2Link, or on the G2C1 modules, with the net-setup.sh script on the display module.
In the sections below, if you choose DHCP addressing, the display module will obtain an IP address from your network’s DHCP server. (Note: This address may change over time, depending on the configuration of the DHCP server.)
If you choose static addressing, you will be prompted for an IP address, a netmask, and a gateway IP address. These values can be obtained from your network administrator.
If you choose Wifi, you will be prompted for the network name (SSID), the encryption protocol, and the network password. These values can be obtained from your network administrator. A tutorial on WiFi configuration can be found here.
Regardless of the method you use to configure the network, be sure to reboot the display module for the changes to take effect. Click the Check Network Connection button to ensure the configuration was successful.
Configuration Using G2Link Network Setup
Start G2Link, click Select Serial Port, use the Select Port pull-down to select the COM port connected to your module’s Debug port, then click Apply and Close to attach to the module. If your module has an IP address, the value will be shown in the IP Address text box.
To set or change the address, click on Network Setup, then click on I’m using an Ethernet cable if you will be using an Ethernet connection, or I’m using a Wifi dongle if you will be using a wireless network connection.
In the Ethernet setup window, click on either I’m using a DHCP address or I’m using a static address. If you select the DHCP address option, G2Link will configure the module and display a Done! dialog box. Click on Exit to finish Networking Setup.
If you select the static address option, you will be presented with edit fields to enter the IP Address, the Net Mask, and the Gateway. Enter the values obtained from your network administrator and click Save. G2Link will configure the module and display a Done! dialog box. Click Exit to finish Networking Setup.
In the Wireless Settings window, you will be presented an edit field for the Network Name, a pull-down for the Encryption protocol used on the network, and an edit field for the Password for the network. Enter the values obtained from your network administrator, click Next, then Exit to finish Networking Setup.
The WEP, WPA and WPA2 protocols are supported. An open wireless protocol is not supported because it is not secure.
Configuration Using net-setup.sh (G2C1 only)
The net-setup.sh script on the display module can be used from a shell session on the console port. Login as root, then type net-setup.sh to run the script.
You will be asked if you want to use either DHCP or static addressing:
Do you want to use DHCP or Static addressing? [1=DHCP 0=Static]
Enter 1 for DHCP, or 0 for static addressing.
If you select the DHCP address option, the script display the configuration it will use, and then prompt you to save this configuration or not.
If you select the static address option, you will be prompted to enter the Address, the Netmask, and the Default Gateway. Enter the values obtained from your network administrator. The script will display the configuration it will use, and then prompt you to save this configuration or not.
Note: You cannot configure the module for wireless (Wifi) networking using this script.
If the display module is not connected to the network, perform some basic checks: