| http://forum.sierrawireless.com Open AT ® Release version: 2.37.4

Sample – Wireless internet gateway

Changes

- V1.0.0 : Initial revision, pre build version compiled for 2.37.4

Dependencies

Ethernet driver as supplied with Internet library.

Application Description

This application is intended to show an AirLink FX programmable modem, in conjunction with the Ethernet X-card, to operate as an internet gateway allowing a PC to be plugged into it through its Ethernet port and then surf the internet.

The Open AT code includes:

- a DHCP server to automatically allocate IP address to the computers connected on the LAN.

- A web server that prompts an HTTP page to configure the APN and related username and password.

Application operation:

When initially run the application does the following

1. Starts the Ethernet board up.

2. Creates a DHCP server on the Ethernet connection.

3. When an Ethernet client is connected it will detect this and allocate it an address from 192.168.1.2 (the FXT has the address of the default gateway 192.168.1.1).

4. The APN to be used can be configured through the web page hosted on the unit as shown below.

5. Once configured the unit will create a PDP context to the APN and act as a gateway for the connecting client.

Building the project

Please read the notes below about building the project

- The project needs to be built with the relevant Internet plugin for the OS being compiled for.

- When creating the project make sure the ethernet dependency is selected.

Comments:

- You may also choose to connect several laptops using an Ethernet switch; the current sample supports up to 8, which can be easily expanded by changing an option in WIP initialization. See chapter 7 in User Guide.

- Please note that the DHCP Server feature is in beta stage now and should be officially available in OASiS 2.32 / R7.42. In the meantime, you can use the attached beta version (B74u). This firmware is to be used for demonstration purpose only.

- This application is built with Open AT OS 6.31.0.00, WIP 5.30.2010.

- The source file of focus is “wireless_router_dhcps.c”.