(Msg. 1) Posted: Wed Feb 07, 2007 9:10 am
Post subject: TCP/IP/PPP connection using a direct serial port in Vista Archived from groups: microsoft>public>windowsnt>protocol>ras (more info?)
Hi there,
I have a question regarding how to establish a direct serial port
connection
that uses TCP/IP in Windows Vista.
We have a hardware device which connects to the PC's serial port using
a
null-modem cable. We can communicate with the device using TCP/IP.
In Windows XP SP2 we do this by creating a RAS phonebook entry (using
RasSetEntryProperties) and setting the type to direct (RASENTRY-
>dwType =
RASET_Direct) and the device type to serial (
_tcscpy_s(RASENTRY->szDeviceType, RASDT_Serial) ).
Once we create this entry, we do a RasDial() to establish the
connection.
Next, we use RasGetProjectionInfo() to get the PPP information about
the IP
endpoints for client and server.
Using the IP endpoints we create a TcpClient (.NET class) instance
where we
can use the stream to start our communication to the hardware device
on the
other end of the serial connection.
In Windows Vista (last beta from MSDN) a direct RAS phonebook entry is
no
longer supported (#define ERROR_FEATURE_DEPRECATED (RASBASE+216) ) so
we
can't establish our RAS connection and can't get the PPP info and
can't get
our TCP stream going.
Since a direct RAS phonebook entry is no longer supported in Vista,
what has
replaced it?
Is there a different way that we should be establishing a TCP/IP/PPP
connection with a device attached to a serial port?
I have played around with the SerialPort class in .NET, which does
establish
a connection, but we need to use TCP to communicate with the device
and I
don't know how to wrap the SerialPort stream with a TcpClient stream.
We are using .NET 2.0 (VS2005) with C#, managed C++ and the Win32 API
as our
environment.
(Msg. 2) Posted: Wed Feb 14, 2007 7:54 pm
Post subject: Re: TCP/IP/PPP connection using a direct serial port in Vista [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Josh, you saw my earlier appends (11Jan2007 and 15Jan2007) under
"816=RasSetEntryProperties() on Vista" ? In my case it was SLIP,
while you mention PPP -- is yours actually PPP ? In any event, per
http://msdn2.microsoft.com/en-us/library/aa377274.aspx (RASENTRY) at
dwType:
RASET_Direct for Direct serial or parallel connection is no longer
used on Vista.
I have found no other solution beyond non-support of Vista .
(Msg. 3) Posted: Mon Mar 05, 2007 10:37 pm
Post subject: Re: TCP/IP/PPP connection using a direct serial port in Vista [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
i am trying to do the same thing but with no luck.
(Msg. 4) Posted: Wed May 09, 2007 4:09 pm
Post subject: Re: TCP/IP/PPP connection using a direct serial port in Vista [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Josh,
You can set szDeviceType to RASDT_Modem (without setting dwType explicitly)
and it will work with the "Communications cable between two computers"
driver on Vista. However, in this case, there is an issue that the
connection can only be made at the base baud rate for the device configured
in Control Panel.
Graham
"Josh" <chezgage RemoveThis @gmail.com> wrote in message
news:1170868253.744759.224850@s48g2000cws.googlegroups.com...
> Hi there,
>
> I have a question regarding how to establish a direct serial port
> connection
> that uses TCP/IP in Windows Vista.
>
> We have a hardware device which connects to the PC's serial port using
> a
> null-modem cable. We can communicate with the device using TCP/IP.
>
> In Windows XP SP2 we do this by creating a RAS phonebook entry (using
> RasSetEntryProperties) and setting the type to direct (RASENTRY-
>>dwType =
> RASET_Direct) and the device type to serial (
> _tcscpy_s(RASENTRY->szDeviceType, RASDT_Serial) ).
>
> Once we create this entry, we do a RasDial() to establish the
> connection.
> Next, we use RasGetProjectionInfo() to get the PPP information about
> the IP
> endpoints for client and server.
>
> Using the IP endpoints we create a TcpClient (.NET class) instance
> where we
> can use the stream to start our communication to the hardware device
> on the
> other end of the serial connection.
>
> In Windows Vista (last beta from MSDN) a direct RAS phonebook entry is
> no
> longer supported (#define ERROR_FEATURE_DEPRECATED (RASBASE+216) ) so
> we
> can't establish our RAS connection and can't get the PPP info and
> can't get
> our TCP stream going.
>
> Since a direct RAS phonebook entry is no longer supported in Vista,
> what has
> replaced it?
>
> Is there a different way that we should be establishing a TCP/IP/PPP
> connection with a device attached to a serial port?
>
> I have played around with the SerialPort class in .NET, which does
> establish
> a connection, but we need to use TCP to communicate with the device
> and I
> don't know how to wrap the SerialPort stream with a TcpClient stream.
>
> We are using .NET 2.0 (VS2005) with C#, managed C++ and the Win32 API
> as our
> environment.
>
> Thanks,
> - Josh
>
(Msg. 6) Posted: Thu Dec 11, 2008 10:03 am
Post subject: [Login to view extended thread Info.]
Hi,
I'm not sure if this will help you but:
We developed at my company (Giant Steps) a "SLIP Connection Manager" that work for all windows OS.
This includes XP, Vista32, Vista64.
For more details please email: gil RemoveThis @giant-steps.com
Regards,
Sagi
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum