|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-A5C95115-2083-589C-BC82-906AB0DE5A38" xml:lang="en"><title>Troubleshooting |
|
13 guide</title><shortdesc>Common errors and solutions to avoid whilst using ethernet.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>The following may help if you have trouble connecting the emulator: </p> |
|
15 <section id="GUID-E576CB5D-B796-49E9-A510-5F498674B7E0"><title>Specific errors</title> <dl> |
|
16 <dlentry> |
|
17 <dt><b>HttpExampleClient.exe reports error -1</b> </dt> |
|
18 <dd><p>In most cases <systemoutput>-1</systemoutput> indicates that the current |
|
19 comms database is not compatible with the emulator. </p> <p>The best way to |
|
20 avoid trouble is to use the <xref href="GUID-3C6935E1-66C9-5115-901E-D3B1D0C2E783.dita">Quick |
|
21 ethernet configuration</xref>. Ensure that the <codeph>IAP</codeph>, <codeph>LANBearer</codeph> and <codeph>LANService</codeph> tables |
|
22 are set up exactly as indicated. </p> </dd> |
|
23 </dlentry> |
|
24 <dlentry> |
|
25 <dt><b>HttpExampleClient.exe reports error -5120</b> </dt> |
|
26 <dd><p>This error indicates that the URL cannot be resolved to an IP address. |
|
27 This is usually caused by a problem with DNS; either the location of the DNS |
|
28 server is incorrectly specified or there is no DNS server. </p> <p>If using |
|
29 a statically allocated DNS address, check that the value in your comms database's <codeph>LANService</codeph> table |
|
30 is correct for your network. </p> </dd> |
|
31 </dlentry> |
|
32 <dlentry> |
|
33 <dt><b>Windows reports that there is an IP address conflict</b> </dt> |
|
34 <dd><p>The likely cause is that the (static) IP address of your emulator is |
|
35 the same as that of your computer. This will not occur if your IP addresses |
|
36 are dynamically allocated. </p> <p>The solution is to ensure that the emulator |
|
37 is allocated a unique IP address in the <codeph>LANService</codeph> table |
|
38 of the comms database configuration file. </p> </dd> |
|
39 </dlentry> |
|
40 </dl> </section> |
|
41 <section id="GUID-03CA9CE3-2262-406F-949A-83611A89F91E"><title>Checklist</title> <ul> |
|
42 <li id="GUID-2CAEC3B6-C3A4-5AF7-A72C-2EFE217C8E6A"><p>Ensure only one copy |
|
43 of <i>WinPcap</i> is installed. Version 4.0 is known to work with Symbian |
|
44 platform </p> </li> |
|
45 <li id="GUID-0425F662-A42E-52D2-BA1A-A60D54C5FD6F"><p>For EKA1 kernel, ensure <filepath>etherdriver.dat</filepath> and <filepath>ethermac.dat</filepath> are in <filepath>\epoc32\<wins or winscw>\c\system\data\</filepath> </p> <p>For |
|
46 EKA2 kernel, ensure that the file <filepath>\epoc32\data\epoc.ini</filepath> exists </p> </li> |
|
47 <li id="GUID-F708C504-C4CF-5877-91CA-86ECF08718ED"><p>For EKA 1, verify the |
|
48 contents of <filepath>etherdriver.dat</filepath>. The file should contain |
|
49 a string that resembles a Windows registry key. For example: </p> <codeblock id="GUID-CBBF49DA-7FC8-5371-A523-A1DD15607859" xml:space="preserve">\Device\NPF_{A2E3CC5B-AD54-4F47-BE93-2C3E06}</codeblock> </li> |
|
50 <li id="GUID-8EC69637-EAF5-5A69-8B88-42C7106FF3E2"><p>For EKA 1, ensure <filepath>ethermac.dat</filepath> contains |
|
51 a valid MAC address and there is no line-break at the end of the file. The |
|
52 MAC address should only contain numbers and letters, no hyphens </p> </li> |
|
53 <li id="GUID-97F7074E-066D-5680-ADFF-36D0D15247AB"><p>Be careful not to confuse <filepath>etherdriver.dat</filepath> with <filepath>ethermac.dat</filepath> </p> </li> |
|
54 <li id="GUID-269F2760-A117-54B8-BE02-DC7D32CB6339"><p>For EKA2, ensure that <filepath>\epoc32\data\epoc.ini</filepath> contains |
|
55 something similar to: </p> <codeblock id="GUID-0852E30B-C0C3-56D6-8B8A-68D35B3F8ABB" xml:space="preserve">ETHER_NIF=\Device\NPF_{8A2D1EEF-A264-49CF-A681-6BFFB7608F48} |
|
56 ETHER_MAC=0202a5b856c9 |
|
57 ETHER_SPEED=10Mbps</codeblock> </li> |
|
58 </ul> </section> |
|
59 <section id="GUID-B2F39D70-044C-4012-A148-4ED912CA15F1"><title>Debug information</title> <ul> |
|
60 <li id="GUID-6F534892-4770-5E64-8B93-36C1315F05B6"><p>When using a debug build, |
|
61 the Symbian platform ethernet software writes log files to the <filepath>c:\logs\log.txt</filepath> file. |
|
62 This file is in your Symbian platform platform's C drive, such as <filepath>\epoc32\winscw\c</filepath> </p> </li> |
|
63 <li id="GUID-F83012C2-9303-5CE6-8CAB-6DE5D36ECF51"><p> <i>Ethereal</i> is |
|
64 an open-source protocol analyser that can be used to capture traffic from |
|
65 the adapter; see <xref href="www.ethereal.com" scope="external">www.ethereal.com</xref>. |
|
66 It can be especially useful in tracking down problems with the DHCP negotiation </p> </li> |
|
67 <li id="GUID-2ADD828B-0EA9-5F74-8008-F50F6B6DFBAB"><p>When developing with |
|
68 Microsoft tools, the MSDEV output window shows each packet sent and received |
|
69 by the Symbian platformethernet driver. </p> </li> |
|
70 </ul> </section> |
|
71 </conbody></concept> |