[英]desktop to windows mobile communication
I want to make a desktop application trigger an event on a Windows Mobile 6 standard device (smartphone). 我想让桌面应用程序在Windows Mobile 6标准设备(智能手机)上触发事件。
How can I make the smartphone and desktop communicate? 如何使智能手机和台式机通信?
Where can I find some code examples of this? 在哪里可以找到一些代码示例? I'm using C#...
我正在使用C#...
To clarify: 澄清:
It will not be docked with USB. 它不会与USB对接。 I would like to use WLAN.
我想使用WLAN。
I want to trigger an event within my application that is already running on the smartphone. 我想触发我的应用程序中已经在智能手机上运行的事件。
One solution is to use RAPI. 一种解决方案是使用RAPI。 If you do so, then have a look at RAPI communication library at OpenNETCF .
如果这样做,请查看OpenNETCF上的RAPI通信库。 This is a C# wrapper for the SDK functions.
这是SDK函数的C#包装器。
With RAPI you can do the following: 使用RAPI,您可以执行以下操作:
I suppose it would be difficult to have a message exchange mechanism using RAPI. 我想使用RAPI建立消息交换机制将很困难。 It would be easier to use Bluetooth or Wi-Fi communication for this purpose.
为此目的,使用蓝牙或Wi-Fi通信会更容易。 A nice example is this article at Code Project.
一个很好的例子是Code Project上的这篇文章。
Is the smartphone docked via USB into this desktop? 智能手机是否通过USB对接到此桌面? If so, look at RAPI (the 'Windows Mobile Remote API') which lets software on the desktop invoke APIs on the device.
如果是这样,请查看RAPI(“ Windows Mobile远程API”),它可以使桌面上的软件调用设备上的API。 RAPI is documented in the Windows Mobile SDK.
Windows Mobile SDK中记录了RAPI。
You can use the RAPI APIs from the desktop. 您可以从桌面使用RAPI API 。 There is no direct "fire this event" type of call, but you can always create your own RAPI extension that would do it and call CeRapiInvoke .
没有直接的“触发此事件”类型的调用,但是您始终可以创建自己的RAPI扩展来执行此操作并调用CeRapiInvoke 。 There is a free, open-source managed wrapper for the RAPI calls here .
有一个自由的,开放源码托管包装的RAPI要求在这里 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.