Symbian
Symbian OS Library

[Index][spacer]



 

Classification: C++ Category: Networking
Created: 11/12/99 Modified: 06/12/2001
Number: FAQ-0436
Platform: ER5

Question:
Is it possible to make the emulator use the IP stack in the PC host (and share an IP address)?

It's awkward to have to dial out (and supply a modem etc.) all the time. Also dial-out can't give us access to our corporate internet.


Answer:
The normal approach is to set up a server - using NT RAS - on your own machine and to use a loopback cable so that EPOC can still talk directly to a serial port.
The RAS server can be configured to route messages through the IP stack of the PC, and therefore to give access from the emulator to your corporate internet and to the web.

Those testing software on the Series 5 (not 5MX) and using Windows 95/98 can use DSLink (See http://www.makesureservices.co.uk/software/dslink/index.html ), which is rather simpler to set up than NT RAS. The current version supports only ER3; future versions may support later EPOC releases.

RAS is tricky to set up, but it works fine. The instructions are given below show how to set it up at the PC end. There are several further points to bear in mind:
  • You need to assign a fixed IP address for your NT workstation. In many NT systems IP addresses are normally allocated on the fly.
  • EPOC requires a DNS server. Many Microsoft Networks setups don't provide one, so you may have to use a public Internet one (and to enter the DNS server IP address manually in the EPOC setup). Of course that means that local intranet machines won't be visible by name - but you can always access them using their IP addresses.
  • The EPOC emulator should use a direct connection. Using Control Panel - Internet - New - Internet Service - Service, set a suitable name and set Connection Type to 'Direct'. You'll also need to enter the DNS server address (Edit Internet Service - Addresses ). You'll also need to set the modem to 'Direct Cable Connection' (use Control Panel - Modems - Current Modem), with appropriate speed settings.
  • You can do the same to connect your EPOC machine to your corporate Intranet, using the standard connection cable.


Installing Windows NT 4.0 RAS

Introduction

Windows NT V4.0 comes with Internet access software and can be set up to use a PPP connection to an EPOC hand-held machine or to a program running under EPOC WINS.

Please note that following assumes that you are using your PC's COM2 port for NT RAS.

For debugging under WINS, you will need to connect a suitable 'null-modem' RS232 cable between the two COM ports of your PC. Your WINS EPOC program would use EPOC COMM::0, which corresponds to the PCs' COM1.

For debugging on an EPOC hand-held machine, you will need an appropriate RS232 cable to connect to your PC's COM2.

Configuration - First Steps

Ensure that Dial-Up Networking has been installed.

I. Double click My Computer
II. Double click the Dial-Up Networking icon
III. You will be prompted to insert the installation CD-ROM to copy the necessary files
IV. When complete, a prompt will appear to add a RAS device (modem) if none are already installed
V. Tick the 'Don't detect my modem; I will select it from a list'
VI. From the list, choose 'Dial-up networking serial cable between 2 PCs'.
VII. Choose port COM2. Then select 'Properties', 115200 baud.
VIII. Then click Continue on the Remote Access Setup box if no network protocols are installed choose TCP/IP and click Continue again.
IX. Windows NT will then install TCP/IP Support
X. Finally you will be prompted to restart the machine

If you are not prompted for this information then you can manually add the components:

I. Click on the Network icon in Control Panel
II. Click the Services tab
III. Highlight Remote Access Service
IV. Click Add...
V. Add Remote Access Service
VI. When complete a prompt will appear to add a RAS device (modem) if none are already installed. Click Yes.
VII. If you are not prompted for a modem, go to 'Modems' in Control Panel.
VIII. Tick the 'Don't detect my modem; I will select it from a list'
IX. From the list, choose 'Dial-up networking serial cable between 2 PCs'. Choose port COM2. Then select 'Properties', 115200 baud.
X. If no network protocols are available Windows NT will prompt you to add one, select TCP/IP and click continue
XI. Windows NT will then install TCP/IP Support
XII. Finally you may be prompted to restart the machine
To manually add another modem, click Add.. on the Remote Access Setup and then choose Install Modem... or use the Modems icon in the Control Panel

Setting the TCP/IP Properties

I. From the Start menu, select Settings
II. Open the Control panel.
III. Click on the Network icon
IV. Choose the Services tab
V. Highlight 'Remote Access Service'
VI. Click Properties… The 'Remote access setup' dialog appears.
VII. Highlight 'Dial-up Networking Serial Cable between 2 PCs'.
VIII. Choose 'Configure'. The 'Port Usage' dialog appears. Select 'Dial out or receive calls'.
IX. Return to the 'Remote access setup' dialog. Click on the Network… button.
X. In the Network protocols:
· Check TCP/IP
· Uncheck IPX/SPX Compatible
· Uncheck NetBEUI
· Under 'Encryption Settings:' choose 'Allow any authentication including clear text'
XI. Then click TCP/IP Configure...
· Check Use static address pool
· Under Begin and End, enter the upper and lower limits of a range of IP addresses that are valid for your network and are not already in use.
· Alternatively, select 'This computer only', and use the range 10.1.0.1 to 10.1.0.254. This will suffice if you do not wish to access other machines apart from your own PC.
XII. Return to the Network Services, multi-tabbed dialog. (Which was reached from the control panel by clicking 'Network'.)
XIII. If you wish to access other machines apart from your own PC, select the 'Protocols' tab, highlight 'TCP/IP' and click 'Properties…'. Select the 'Routing' tab and tick the 'Enable IP forwarding' option.
XIV. Quit all dialog boxes, and reboot.

Creating a RAS User account

I. From the Start menu, select Run… and enter the program name 'MUSRMGR'.
II. The 'User Manager' program appears
III. Look for the name 'RasUser' in the list of user names. (Exactly as shown, with no spaces, and with the same capitalisation.) If it is present, double click on it.
IV. If the name 'RasUser' is not already in the list of user names, choose 'New User' from the 'User' menu. Enter 'RasUser' in the 'Username' box, exactly as shown, with no spaces, and with the same capitalisation.
V. Enter some suitable comment, such as 'EPOC Test RAS User' in the 'Full Name' and 'Description' boxes.
VI. Enter 'pass' in the 'Password' and 'Confirm' boxes. In lower case.
VII. Untick the 'User must change password at next logon' option.
VIII. Tick the 'User cannot change password' option.
IX. Tick the 'Password never expires' option.
X. Select the 'Dialin…' button. Choose 'Grant dialin permission to user'..
XI. Return to the User Properties dialog and click the 'Groups…' button. Add the group name 'Users' into the 'Member of' list.
XII. Quit the 'User Manager' program.

Starting RAS

At the command line prompt enter the following commands

      net start "Remote Access Connection Manager"

      net start "Remote Access Server"

      net start "Simple TCP/IP Services"

      net start eventlog

      start rasmon It would be best to save these commands in a suitable batch file.

      RAS should now be running and should be listening to COM2. Enter the command 'net start'; this should that RAS is running.

      Finally

      When you connect a computer to your PC's COM2 port, the RASMON program should display a 'CD' light when you make a connection. You can choose options in the RASMON program which will display data-transmitted/received activity indicators.

      Trouble shooting checklist

      · Check that RAS is running by typing NET START at the command line prompt.
      · Run the RASMON program to monitor activity on the port.
      · Check the following points in the Modems icon in the Control Panel.
      · Click the Connection tab
      · Click Connection
      · Data bits: 8
      · Parity: None
      · Stop bits: 1
      · Click Advanced
      · Check Use flow control
      · Check Hardware (RTS/CTS)