Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 14 May 2004 08:39 AM by  mpinton
change to static IP from DHCP in Webserver app
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
mpinton
New Member
New Member
Posts:


--
11 May 2004 01:21 PM
    Hi,
    I followed the recipe outlined in the whitepaper "Building a WinCE Image on the LH7A400-10" that creates a headless image with http & telnet support. I successfully built a a debug image, downloaded, and could use PB tools to inspect various things. However I couldn't connect to the IP I thought I had assigned due to the problem noted in the whitepaper with a DHCP server reassigning a new IP to the board. I decided to try to _disable_ DHCP but have had little luck:
    - i am not using the lpd_91C111_Async_rel_100 driver, as i'm not sure how to add it to a configuration: [color=red:1vbtyar9]Can someone explain how to do this for the webserver test app?

    - i tried modifing common.reg in \WINCE420\PUBLIC\COMMON\OAK\FILES

    ; @CESYSGEN IF CE_MODULES_TCPSTK
    ; Registry values for the TCP/IP stack
    [HKEY_LOCAL_MACHINE\Comm\Tcpip\Parms]
    "IpEnableRouter"=dword:0
    "TcpWindowSize"=dword:8000
    ; "EnableDHCP"=dword:1
    "EnableDHCP"=dword:0
    ; @CESYSGEN ENDIF

    and also modified or added the following (which I got from reading the readme.txt in WINCE420\PUBLIC\COMMON\OAK\DRIVERS\ETHDBG\VMINI (because when I only modified the above, I none of the correct Registry keys were created)

    ; @CESYSGEN IF CE_MODULES_VMINI
    IF BSP_NOSHAREETH !

    [HKEY_LOCAL_MACHINE\Comm\Tcpip\Linkage]
    "Bind"=multi_sz:"VMINI1"

    [HKEY_LOCAL_MACHINE\Comm\VMini]
    "DisplayName"="Null Ethernet Miniport Driver"
    "Group"="NDIS"
    "ImagePath"="VMini.dll"

    [HKEY_LOCAL_MACHINE\Comm\VMini\Linkage]
    "Route"=multi_sz:"VMINI1"

    [HKEY_LOCAL_MACHINE\Comm\VMINI1]
    "DisplayName"="Null Ethernet Miniport Driver"
    "Group"="NDIS"
    "ImagePath"="VMini.dll"

    [HKEY_LOCAL_MACHINE\Comm\VMINI1\Parms]
    "BusNumber"=dword:0
    "BusType"=dword:05
    "Interrupt"=dword:05
    "IOAddress"=dword:0300

    [HKEY_LOCAL_MACHINE\Comm\VMINI1\Parms\TcpIp]
    "EnableDHCP"=dword:1

    ; This should be MULTI_SZ
    "DefaultGateway"=""

    ; Use zero for broadcast address? (or 255.255.255.255)
    "UseZeroBroadcast"=dword:0

    ; Thus should be MULTI_SZ, the IP address list
    "IpAddress"="0.0.0.0"

    ; This should be MULTI_SZ, the subnet masks for the above IP addresses
    "Subnetmask"="0.0.0.0"

    ;DHCP will never give up retrying..
    "DhcpMaxRetry"=dword:ffffffff

    ;INIT delay. RFC2131 recommends 10 seconds.
    "DhcpInitDelayInterval"=dword:2710

    ;Number of retries before dialogue box is up.
    "DhcpRetryDialogue"=dword:ffffffff

    [HKEY_LOCAL_MACHINE\Comm\VMINI1\Parms]
    "DefaultGateway"=dword:1
    "DefaultLineStatus"=dword:1

    ENDIF BSP_NOSHAREETH !
    ; @CESYSGEN ENDIF CE_MODULES_VMINI

    Will this work? I don't think I should be playing around with common.reg so how should I go about doing this?

    Thanks for any help!

    /michel
    mpinton
    New Member
    New Member
    Posts:


    --
    11 May 2004 01:33 PM
    Oops, stupid cut & paste.

    The chunk of registry settings I added really added had DHCP turned off ("EnableDHCP"=dword:0), and valid IP address ("IpAddress"="10.0.0.2")and subnet mask ("Subnetmask"="255.255.255.0") applied.

    /michel
    mpinton
    New Member
    New Member
    Posts:


    --
    14 May 2004 08:39 AM
    The above changes to settings in \WINCE420PUBLIC\COMMON\OAK\FILES\common.reg worked, I got DHCP disabled, and my static IP assigned address worked. But there's got to be a better way?
    Would it make more sense to add the registry information that I added to common.reg to the project.reg? Project.reg gets appended to common.reg (along with other reg files) to make the reginit.ini file right?

    /michel
    You are not authorized to post a reply.