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

Re: USB RNDIS: automatic setup of IP address by Paul

Paul
Fri Dec 14 07:31:52 PST 2007

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.Varela@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
>
>
>
>



Re: USB RNDIS: automatic setup of IP address by LucaCalligaris

LucaCalligaris
Fri Dec 14 08:12:00 PST 2007

You can use a generic static IP address for your device or a static IP
address in the range 169.254.0.1 to 169.254.255.254 as suggested by Paul G.
Tobey : this range is used for APIPA (Automatic Private Internet Protocol
Addressing) in Windows systems

"Paul G. Tobey [eMVP]" 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.Varela@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
> >
> >
> >
> >
>
>
>

Re: USB RNDIS: automatic setup of IP address by MV

MV
Sun Dec 16 23:37:28 PST 2007

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


Re: USB RNDIS: automatic setup of IP address by Paul

Paul
Mon Dec 17 07:45:11 PST 2007

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.Varela@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
>



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

Re: USB RNDIS: automatic setup of IP address by Paul

Paul
Wed Dec 19 07:26:05 PST 2007

I'm at a loss. Sorry.

Paul T.

"MV" <Melchor.Varela@gmail.com> wrote in message
news:15a50025-e4f1-4a55-a38b-deae6a943e1f@p1g2000hsb.googlegroups.com...
> 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