简体   繁体   English

桌面到Windows移动通信

[英]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,您可以执行以下操作:

  • Copy files from desktop to mobile device and vice versa 将文件从桌面复制到移动设备,反之亦然
  • Initiate a process at the mobile device from the desktop 从桌面在移动设备上启动进程

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.

相关问题 桌面应用程序和Windows Mobile Compact Framework c#之间的通信 - Communication between Desktop Application and Windows Mobile Compact Framework c# Windows服务和桌面应用程序之间的通信 - Communication between Windows Service and Desktop Application Windows服务和桌面应用之间的通信 - Communication between windows service and desktop app Windows Mobile中桌面C#DLL的使用 - Usage of Desktop C# DLL in windows mobile 如何实现 Windows 桌面服务和 Windows 桌面应用程序之间的通信? - How can I achieve communication between a windows desktop service and a windows desktop application? 在Windows桌面应用程序和Windows Mobile客户端应用程序之间同步数据 - Sync data between a windows desktop app and windows mobile client app Windows Mobile客户端和Winforms应用程序之间的通信抛出WCF - communication between windows mobile client and winforms application throw wcf 电话到桌面通讯的框架 - Framework for phone to desktop communication Windows UWP C#代码可在台式机上使用,而不能在移动设备上使用 - Windows UWP C# code works on desktop, not on mobile 台式机和Windows Mobile之间的单个域模型类 - A single Domain Model Classes between Desktop and Windows Mobile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM