windows-7 – 通过串行电缆的PPP连接适用于WindowsXP,但在Windows7上不起作用

我有一个设备通过零调制解调器电缆建立PPP连接(或
Windows方面的传入连接),然后使用TCP套接字API与PC通信.

问题是所有在WindowsXP上工作正常,但在Windows7上不起作用.据我所知,建立PPP连接存在一些问题,因为它没有达到TCP套接字连接.

这是WindowsXP上的握手过程日志(来自设备管理器中的通信电缆属性):

10-27-2011 14:37:04.342 – Recv: CLIENT
10-27-2011 14:37:04.342 – Interpreted response: Ring
10-27-2011 14:37:04.357 – TSP(0000): LINEEVENT: LINE_NEWCALL
10-27-2011 14:37:04.357 – TSP(0000): LINEEVENT: LINECALLSTATE_OFFERING
10-27-2011 14:37:04.357 – TSP(0000): LINEEVENT: LINEDEVSTATE_RINGING(0x1)
10-27-2011 14:37:04.545 – Recv: CLIENT
10-27-2011 14:37:04.545 – Interpreted response: Ring
10-27-2011 14:37:04.545 – TSP(0000): LINEEVENT: LINEDEVSTATE_RINGING(0x1)
10-27-2011 14:37:04.545 – TSP(0000): Accepting Call
10-27-2011 14:37:04.545 – TSP(0000): LINEEVENT: LINECALLSTATE_ACCEPTED
10-27-2011 14:37:04.545 – TSP(0000): Answering Call
10-27-2011 14:37:04.545 – Answering the call.
10-27-2011 14:37:04.545 – Send: CLIENTSERVER
10-27-2011 14:37:04.545 – Connection established at 115200bps.
10-27-2011 14:37:04.545 – Error-control off or unknown.
10-27-2011 14:37:04.545 – Data compression off or unknown.

在Windows7上:

10-27-2011 13:27:30.447 – Recv: CLIENT
10-27-2011 13:27:30.447 – Interpreted response: Ring
10-27-2011 13:27:30.647 – Recv: CLIENT
10-27-2011 13:27:30.647 – Interpreted response: Ring
10-27-2011 13:27:30.847 – Recv: CLIENT
10-27-2011 13:27:30.847 – Interpreted response: Ring
10-27-2011 13:27:30.847 – Answering the call.
10-27-2011 13:27:30.857 – Send: CLIENTSERVER
10-27-2011 13:27:30.857 – Connection established at 115200bps.
10-27-2011 13:27:30.857 – Error-control off or unknown.
10-27-2011 13:27:30.857 – Data compression off or unknown.
10-27-2011 13:27:32.415 – Hanging up the modem.
10-27-2011 13:27:32.416 – Hardware hangup by lowering DTR.
10-27-2011 13:27:32.416 – 115200,8,N,1, ctsfl=1, rtsctl=2
10-27-2011 13:27:32.416 – Initializing modem.
10-27-2011 13:27:32.416 – Waiting for a call.

我假设一些需要的Windows服务被停止但无法找到确切需要启动的服务,并且在第一次看起来在两种情况下都启动了相同的服务.

那么,有谁知道问题是什么,我该如何解决?

最佳答案 可以通过手动编辑计算机上的rasphone.pbk文件并将Type值更改为3(3 = RASET_Direct(直接串行或并行连接))而不是1(1 = RASET_Phone(电话线,例如,调制解调器,ISDN,X.25)).显然这是Windows 7中依赖于设备的错误.

可以通过打开资源管理器窗口并在地址栏中键入以下内容来找到rasphone.pbk文件:

%userprofile%\AppData\Roaming\Microsoft\Network\Connections\Pbk\

rasphone.pbk文件应该在该文件夹中.

http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/5858797c-bc75-4e3f-bca4-d988fadd7581

点赞