简体   繁体   English

如何与USB连接的Win CE设备进行通信

[英]How to communicate with Win CE device connected by usb

Greetings. 问候。

I'm trying to communicate between desktop PC and Windows CE 5.0 device connected by usb (cradle). 我正在尝试通过usb(cradle)连接的台式PC和Windows CE 5.0设备之间进行通信。

I feel like I'm missing something obvious, because I can't find how to establish connection between them. 我觉得我错过了一些明显的东西,因为我找不到如何在它们之间建立联系。 What namespace to look? 要看什么命名空间? I just want simple communication: connect, exchange some data, disconnect. 我只想简单的沟通:连接,交换一些数据,断开连接。 Sockets are more then enough, but what address should I access? 套接字就足够了,但我应该访问哪个地址? The one assigned by usb connection on handheld is not accessible on desktop machine. 在掌上电脑上由USB连接分配的那个在台式机上无法访问。

Communication should be initiated from desktop PC. 应通过台式PC启动通信。 My handheld is running Windows CE 5.0 with .NET Compact Framework 2.0 我的掌上电脑正在运行带有.NET Compact Framework 2.0的Windows CE 5.0

Please point me to the right direction :) 请指出正确的方向:)

Do you have ActiveSync connection with the device. 您是否与设备建立了ActiveSync连接。 If you do, use OpenNETCF desktop communication . 如果您这样做,请使用OpenNETCF桌面通信 It is exatly what you are looking for. 你正在寻找的很好。

If you are able to create and use server application for desktop, do data communication trough socket. 如果您能够为桌面创建和使用服务器应用程序,请通过套接字进行数据通信。 You can transfer whatever you want. 你可以转移你想要的任何东西。

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

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