Re: RAS Server problem
From: Jeff Kelley [MS] (jeffkel_at_online.microsoft.com)
Date: 11/17/04
- Next message: Greg Scott [MS]: "RE: Is wzcsvc a driver or a service?"
- Previous message: Matthew Townsend: "RE: CE 4.2 Issue Scanning for Bluetooth Services on a remote devic"
- In reply to: Maverick: "Re: RAS Server problem"
- Next in thread: Maverick: "Re: RAS Server problem"
- Reply: Maverick: "Re: RAS Server problem"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 17 Nov 2004 10:10:48 -0800
The problem is with the RAS server sample setup program. It is does not
localize the name of the line it is listening to. That is, the name is hard
coded as "Serial Cable on COM1:". You should change the name of that string
to what is appropriate for your language and device, and then recompile.
That should get it to work.
--
Jeff Kelley
Microsoft / Windows CE Networking
This posting is provided AS IS with no warranties, and confers no rights.
"Maverick" <maverick@newsfan.net> wrote in message
news:OF4QVrGzEHA.4028@TK2MSFTNGP15.phx.gbl...
> I get it running!
>
> In platform settings, I switched 'Default Language' from 'Chinese' to
> 'English (USA)'. After rebuilding platform, I can get connecting with the
> RAS server on CE device. Maybe it's bug in RAS' localization in CE.net
4.2.
>
> Thanks, Jeff
>
> Maverick
>
> "Maverick" <maverick@newsfan.net> дÈëÓʼþ
> news:uFa2ZGGzEHA.2876@TK2MSFTNGP12.phx.gbl...
> > I plugged one end of a serial cable to the physical COM1 of the CE
device,
> > the other end to a Client PC running hyperterminal (set to 9600 bps, and
> > only 9600 could pass the test).
> >
> > Test of the comm by the command shell commands on CE device:
> > echo test > COM1:
> > ==> The client PC's HyperTerminal shows the text. Then I tested
reading:
> > type COM1:
> > ==> I could read all the characters I typed.
> >
> > This means my hardware connection is functioning.
> >
> > Then I run RasServer on CE, and try to dial in from a client PC. By
> > analysing tools ,I can see the client PC sends out "CLIENT"
successfully.
> > However, no "CLIENTSERVER" is received. And The error number I get is
> > 777:The modem isn't working. But I choose direct connection through a
null
> > modem cable. What's wrong?
> >
> >
> > "Jeff Kelley [MS]" <jeffkel@online.microsoft.com> дÈëÓʼþ
> > news:419a520d$1@news.microsoft.com...
> > > The RAS server sample code will open the port named "Serial Cable on
> > COM1:"
> > > at a speed of 57600 bps to listen for incoming connection. See the
code
> in
> > > the file "public\COMMON\oak\drivers\netsamp\rasserver\main.c":
> > >
> > > void
> > >
> > > RASServerStart(
> > >
> > > IN PWSTR wszDeviceName,
> > >
> > > IN PWSTR wszDeviceType)
> > >
> > > //
> > >
> > > // Configure the RAS server to listen for incoming calls on
> > >
> > > // the line "Serial Cable on COM1:" at a speed of 57600 bps.
> > >
> > > //
> > >
> > > {
> > >
> > > .
> > >
> > > LineConfigUnimodemSpeed(wszDeviceName, wszDeviceType, 57600);
> > >
> > >
> > >
> > > That code demonstrates how to set the baud rate using a function call.
> The
> > > baud rate is not set via the registry.
> > >
> > >
> > > Have you run a simple serial line test to verify basic serial line
port
> to
> > > port connectivity is working? That is, run applications on each
machine
> > that
> > > just open the serial port, set the baud rate, and then send some
> > characters
> > > back and forth? If not, then I would suggest you try that out to
ensure
> > that
> > > the basics of the physical layer are functioning ok.
> > >
> > > The next step after that would be to turn on debug zones in Unimodem
> while
> > > trying to establish the RAS connection. Unimodem on the client will
send
> > the
> > > string "CLIENT" to the server, to which the server should respond
> > > "CLIENTSERVER". After that, PPP negotiations commence with LCP. You
can
> > > observe the PPP negotiations by turning on the debug zone ZONE_TRACE
on
> in
> > > ppp.dll.
> > >
> > > --
> > > Jeff Kelley
> > > Microsoft / Windows CE Networking
> > >
> > > This posting is provided AS IS with no warranties, and confers no
> rights.
> > >
> > > "Maverick" <maverick@newsfan.net> wrote in message
> > > news:uwqEkp4yEHA.1524@TK2MSFTNGP09.phx.gbl...
> > > > Hi, all
> > > >
> > > > I have some problem in using RAS Server in CE.net 4.2. I used the
demo
> > > > program called RASServer in PB. Here is what I did:
> > > >
> > > > 1, Add Ras Server/PPTP Server(Incoming) component;
> > > >
> > > > 2,I set registry as the help files told as below;
> > > >
> > > > [HKEY_LOCAL_MACHINE\Comm\Tcpip\Parms]
> > > > "ArpUseEtherSNAP"=dword:0
> > > > "AutoCfg"=dword:1
> > > > "DefaultTOS"=dword:0
> > > > "DefaultTTLREG"=dword:128
> > > > "DNSDomain"=""
> > > > "EnableDeadGWDetect"=dword:0
> > > > "EnableDHCP"=dword:0
> > > > "IGMPLevel"=dword:2
> > > > "IPEnableRouter"=dword:0
> > > > "NoIdleIfAdapter"=dword:0
> > > > "NoIdleIfConnected"=dword:0
> > > > "SackOpts"=dword:1
> > > > "TCP1323Opts"=dword:0
> > > > "TcpMaxConnectResponseRetransmissions"=dword:2
> > > >
> > > > [HKEY_LOCAL_MACHINE\Comm\RTL81391\Parms\Tcpip]
> > > > "AutoCfg"=dword:0
> > > > "AutoInterval"=dword:300
> > > > "AutoIP"=""
> > > > "AutoMask"="255.255.0.0"
> > > > "AutoSubnet"=""
> > > > "DefaultGateway"=""
> > > > "DhcpGlobalInitDelayInterval"=dword:0
> > > >
> > > > [HKEY_LOCAL_MACHINE\Comm\ppp\Server\Parms]
> > > > "UseAutoIPAddresses"=dword:1
> > > > "UseDhcpAddresses"=dword:0
> > > > "AutoIPSubnet"=dword:C0A80000
> > > > "AutoIPSubnetMask"=dword:FFFF0000
> > > > "StaticIPAddrStart"=dword:C0A8FE01
> > > > "StaticIpAddrCount"=dword:254
> > > > "AuthenticationMethods"=dword:0
> > > > "Flags"=dword:0
> > > > "Enable"=dword:0
> > > > "StartupDelaySeconds"=dword:20
> > > >
> > > > 3, Use direct connection mode through a null modem line to the two
> > > machines'
> > > > COM1:, and the ports works fine.
> > > >
> > > > 4. Run the demo RasServer on CE device without problem.
> > > >
> > > > 5. When I tried to dial in from another PC, I got no response.
> > > >
> > > > After I inspected the registry on the CE device, I found a line was
> > added
> > > > successfully. So the RAS Server is running successfully. I guess
some
> > > > registry settings may be missing or be wrong.
> > > >
> > > > In the registry I found a problem: I found nowhere to set the serial
> > > port's
> > > > baud rate. In CE, how to synchronize the baud rate on my both
machine?
> > > >
> > > > Thanks!
> > > >
> > > > maverick
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Greg Scott [MS]: "RE: Is wzcsvc a driver or a service?"
- Previous message: Matthew Townsend: "RE: CE 4.2 Issue Scanning for Bluetooth Services on a remote devic"
- In reply to: Maverick: "Re: RAS Server problem"
- Next in thread: Maverick: "Re: RAS Server problem"
- Reply: Maverick: "Re: RAS Server problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|