Re: USB RNDIS: automatic setup of IP address by MV
MV
Tue Dec 18 22:57:09 PST 2007
On 17 dic, 16:45, "Paul G. Tobey [eMVP]" <p space tobey no spam AT no
instrument no spam DOT com> wrote:
> I'd do at least a warm reboot after making the changes, without having the
> cable plugged in during the reboot, then verify the result.
>
> Paul T.
>
> "MV" <Melchor.Var...@gmail.com> wrote in message
>
> news:ef3197d8-81e4-48be-b82b-245d7882f133@l1g2000hsa.googlegroups.com...
>
>
>
> > On 14 dic, 16:31, "Paul G. Tobey [eMVP]" <p space tobey no spam AT no
> > instrument no spam DOT com> wrote:
> >> You could statically assign the address. On Windows Mobile, that's
> >> actually
> >> what the device does. The WM device is always 169.254.2.1. It doesn't
> >> really have a full DHCP server, either, as far as I can tell. It always
> >> just assigns the PC 169.254.2.2.
>
> >> Paul T.
>
> >> "MV" <Melchor.Var...@gmail.com> wrote in message
>
> >>news:fc407d0a-4a0f-4ba3-92d0-efb295cd450b@d27g2000prf.googlegroups.com...
>
> >> > Is there any good solution to setup automatically an USB RNDIS
> >> > connection for a CE5.0 based device without bridging or running a
> >> > local DHCP server in the host PC? It is not needed accessing to the
> >> > full network but just PC to device communication.
>
> >> > The WM2005 seems to support this by running a DHCP server on the
> >> > device but it seems that is not available on CE5.0.
>
> >> > Cheers,
> >> > MV- Ocultar texto de la cita -
>
> >> - Mostrar texto de la cita -
>
> > Thank you very much for the advice.
>
> > I changed to static IP using the same addresses as for WM but the
> > device stills uses DHCP:
>
> > Ethernet adapter Local Area Connection:
> > IP Address ........ : 169.254.3.8
> > Subnet Mask ....... : 255.255.0.0
> > Adapter Name ...... : RNDISFN1
> > Description ....... : RndisFn1
> > Adapter Index ..... : 2
> > Address............ : 02 fe ef ab ba cc
> > DHCP Enabled....... : YES
> > DHCP Server........ :
> > Primary WinsServer :
> > Secondary WinsServer:
> > Lease obtained on : Saturday, February 6 ,2106 22 : 28 : 15
> > Lease expires on : Wednesday, December 23 ,1970 23 : 35 : 29
> > AutoConfig Enabled : YES
>
> > Host name.......... : WindowsCE
> > Domain Name........ :
> > NODETYPE........... : 8 Routing Enabled.... : NO
> > Proxy Enabled...... : NO
>
> > The RNDIS register settings are the following:
>
> > ; @CESYSGEN IF CE_MODULES_RNDISFN
> > [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> > "DefaultClientDriver"=- ; erase previous default
>
> > [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> > "DefaultClientDriver"="RNDIS"
>
> > [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS]
> > "UseActiveSyncIds"=dword:0
>
> > [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\RNDIS]
> > "Dll"="rndisfn.dll"
> > "FriendlyName"="Rndis"
> > "idVendor"=dword:0142A
> > "Manufacturer"="ACME"
> > "idProduct"=dword:0302
> > "Product"="ACME SUPERGADGET: RNDIS"
> > "bcdDevice"=dword:0
>
> > [HKEY_LOCAL_MACHINE\Comm\RndisMini]
> > "DisplayName"="Microsoft RNDIS Miniport Driver"
>
> > [HKEY_LOCAL_MACHINE\Comm\RndisMini\Linkage]
> > "Route"=multi_sz:"RNDISMINI1"
>
> > [HKEY_LOCAL_MACHINE\Comm\RNDISMINI1]
> > "DisplayName"="Microsoft RNDIS Miniport Driver"
>
> > [HKEY_LOCAL_MACHINE\Comm\RNDISMINI1\Parms]
> > "BusNumber"=dword:0
> > "BusType"=dword:0
> > "Interrupt"=dword:0
> > "IOAddress"=dword:0
>
> > [HKEY_LOCAL_MACHINE\Comm\RNDISMINI1\Parms\TcpIp]
> > "EnableDHCP"=dword:0
> > "DefaultGateway"=""
> > "UseZeroBroadcast"=dword:0
> > ;<< Setup IP address and subnet mask
> > "IpAddress"="169.254.2.1"
> > "Subnetmask"="255.255.0.0"
>
> > ; @CESYSGEN ENDIF CE_MODULES_RNDISFN
>
> > [HKEY_CURRENT_USER\ControlPanel\Comm]
> > "Cnct"="`USB"
>
> > ENDIF
>
> > The device has also a USB RNDIS KITL implementation and works
> > correctly with static IP addressing.
>
> > Do you know what could be the problem?
>
> > Thanks,
> > MV- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -
The device is headless so I changed the settings in the initial
registry and checked that the settings are correctly set in
REGINIT.INI and the device is using the new settings. I changed also
the IP address and subnet mask settings to multi_sz but the result is
the same, always uses DHCP.
Cheers,
MV