简体   繁体   English

在Windows CE 6设备和Windows 7之间创建串行PPP连接

[英]Creating a serial PPP connection between a Windows CE 6 device and Windows 7

I need to create a PPP connection over a serial port between an embedded device running Windows CE 6 and a PC running Windows 7. 我需要在运行Windows CE 6的嵌入式设备和运行Windows 7的PC之间通过串行端口创建PPP连接。

I've configured a dial-up modem on Windows 7 according to this: https://stackoverflow.com/a/7085259/512910 我已根据以下步骤在Windows 7上配置了拨号调制解调器: https : //stackoverflow.com/a/7085259/512910

I used a terminal app on the CE device to confirm that attempting a connection sends the string "CLIENT". 我在CE设备上使用了终端应用程序,以确认尝试进行连接会发送字符串“ CLIENT”。

I've also created a direct connection interface on the CE device, and used a terminal app to confirm that attempting a connection also sends the string "CLIENT" to the Windows 7 machine. 我还在CE设备上创建了直接连接接口,并使用终端应用程序来确认尝试连接还会向Windows 7计算机发送字符串“ CLIENT”。

Unfortunately, neither side actually responds, and I'm not sure what the problem is. 不幸的是,双方均未作出回应,我不确定问题出在哪里。

What am I missing here? 我在这里想念什么? Is there a way to make either side listen for an incoming connection? 有没有办法让任何一方监听传入的连接?

-------------------------------- Edit 1/12/12 ---------------------------------- --------------------------------编辑1/12/12 ------------ ----------------------

I needed to add an incoming connection on the Windows 7 side. 我需要在Windows 7端添加传入连接。 However, the connection doesn't appear to work, and times out after 90 seconds. 但是,该连接似乎无法正常工作,并在90秒后超时。

Here is my modem log. 这是我的调制解调器日志。

01-09-2012 19:06:29.542 - Recv: CLIENT
01-09-2012 19:06:29.542 - Interpreted response: Ring
01-09-2012 19:06:29.542 - TSP Completing Async Operation(0x00010227) Status 0x00000000
01-09-2012 19:06:29.542 - TSP(0000): LINEEVENT: LINEDEVSTATE_RINGING(0x1)
01-09-2012 19:06:29.542 - TSP(0000): Answering Call
01-09-2012 19:06:29.542 - Answering the call.
01-09-2012 19:06:29.557 - Send: CLIENTSERVER
01-09-2012 19:06:29.557 - Connection established at 115200bps.
01-09-2012 19:06:29.557 - Error-control off or unknown.
01-09-2012 19:06:29.557 - Data compression off or unknown.
01-09-2012 19:06:29.557 - TSP Completing Async Operation(0x0001029e) Status 0x00000000
01-09-2012 19:06:29.557 - TSP(0000): LINEEVENT: LINECALLSTATE_CONNECTED
01-09-2012 19:06:59.572 - Read: Total: 388, Per/Sec: 12, Written: Total: 12, Per/Sec: 0
01-09-2012 19:08:30.208 - TSP(0000): Dropping Call
01-09-2012 19:08:30.208 - Hanging up the modem.
01-09-2012 19:08:30.208 - Hardware hangup by lowering DTR.
01-09-2012 19:08:30.208 - 115200,8,N,1, ctsfl=1, rtsctl=2
01-09-2012 19:08:30.208 - Initializing modem.
01-09-2012 19:08:30.208 - Waiting for a call.
01-09-2012 19:08:30.208 - TSP(0000): LINEEVENT: LINECALLSTATE_DISCONNECTED(0x1)
01-09-2012 19:08:30.208 - TSP(0000): LINEEVENT: LINECALLSTATE_IDLE
01-09-2012 19:08:30.208 - TSP Completing Async Operation(0x0001027c) Status 0x00000000
01-09-2012 19:08:30.208 - TSP(0000): Dropping Call
01-09-2012 19:08:30.208 - TSP Completing Async Operation(0x000101e3) Status 0x00000000
01-09-2012 19:08:30.208 - TSP(0000): Closing Call

Here's a troubleshooting list I created back in 2002, but it should still be valid (#8 is likely not applicable, and some menus may have changed): 这是我在2002年创建的故障排除列表,但该列表仍然有效(#8可能不适用,并且某些菜单可能已更改):

  1. Make sure your cable is truly null modem. 确保您的电缆是真正的空调制解调器。 Your null modem cable must also be fully connected (CTS, RTS, DTR, DSR). 空调制解调器电缆也必须完全连接(CTS,RTS,DTR,DSR)。

  2. Click the ActiveSync icon on your PC and select Get Connected from the File menu. 单击PC上的ActiveSync图标,然后从“文件”菜单中选择“建立连接”。 It should be actively scanning for your device when you run REPLLOG (the timing of getting both systems searching for each other is sometimes important). 当您运行REPLLOG时,它应该正在积极地扫描您的设备(使两个系统互相搜索的时间有时很重要)。

  3. Reset the CE device and follow the instructions from the beginning. 重置CE设备,并从头开始按照说明进行操作。

  4. If REPLLOG doesn't connect within a few seconds of being run, tap the CANCEL button and retry. 如果REPLLOG在运行几秒钟后仍未连接,请点击CANCEL按钮并重试。

  5. If you get the "Verify COM Port Availability" dialog shortly after telling ActiveSync to Get Connected, you may not be connected to the right port of the CE device, or your cable may have a problem. 如果在告诉ActiveSync建立连接后不久出现“验证COM端口可用性”对话框,则可能未连接到CE设备的正确端口,或者电缆可能有问题。

  6. You can test the serial connection to your desktop PC by shutting down ActiveSync and running Hyperterminal at 19200,8N1. 您可以通过关闭ActiveSync并在19200,8N1处运行超级终端来测试与台式机的串行连接。 When you run REPLLOG, you should see "CLIENT" appear in the Hypterterminal window each of the four times the CE device tries to connect. 运行REPLLOG时,CE设备尝试连接的四次操作中的“ Hypterterminal”窗口中都应出现“ CLIENT”。

  7. Verify that your device supports DTR or you have it shunted in the cable. 确认您的设备支持DTR或电缆中已将其分流。 PC ActiveSync application looks at DTR to determine if a device is connected. PC ActiveSync应用程序查看DTR以确定是否连接了设备。

  8. A bug in some releases of CE reduce the number of chances you have to get connected. 某些CE版本中的错误减少了您获得连接的机会。 Consider loading a build created in June 2001 or later that adds DataSync components from Microsoft. 考虑加载2001年6月或以后创建的版本,该版本将添加Microsoft的DataSync组件。

  9. Make sure that ActiveSync has the communication protocol you are trying enabled. 确保ActiveSync具有您尝试启用的通信协议。 For example, if you are connecting with a null modem serail cable, make sure that ActiveSync has serial communications enabled. 例如,如果使用空的调制解调器Serail电缆连接,请确保ActiveSync启用了串行通信。 These settings are available through the ActiveSync interface under File | 这些设置可通过ActiveSync界面在“文件” |“文件”下找到。 Connection Settings... 连接设置...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM