I want to make a desktop application trigger an event on a Windows Mobile 6 standard device (smartphone).
How can I make the smartphone and desktop communicate?
Where can I find some code examples of this? I'm using C#...
To clarify:
It will not be docked with USB. I would like to use WLAN.
I want to trigger an event within my application that is already running on the smartphone.
One solution is to use RAPI. If you do so, then have a look at RAPI communication library at OpenNETCF. This is a C# wrapper for the SDK functions.
With RAPI you can do the following:
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. It would be easier to use Bluetooth or Wi-Fi communication for this purpose. A nice example is this article at Code Project.
Is the smartphone docked via USB into this desktop? If so, look at RAPI (the 'Windows Mobile Remote API') which lets software on the desktop invoke APIs on the device. RAPI is documented in the Windows Mobile SDK.
You can use the RAPI APIs from the desktop. 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. There is a free, open-source managed wrapper for the RAPI calls here.
Related
In a normal Windows Forms Application for laptops (not a Windows store application) I need to communicate with a Bluetooth device.
For communicating with Bluetooth I need Windows' Bluetooth libraries:
see this link
Can anyone tell me how to add this reference into a normal application ?
My impression is that Microsoft has totally forgotten that normal applications need to communicate with Bluetooth as well sometimes .
Or am I overlooking something ?
I want to develop an app with VoIP and sip. I have found a good example from Microsoft sample is ChatterBox VoIP sample app
From this app we can receive or make audio or video call to some one.But I can not call to another number.
In this document VoIP apps for Windows Phone 8
the incoming call is possible through Microsoft Cloud server. It will push a notification to our phone.
I have also found some third party SIP clients for Windows Phone 8 like LinPhone and PJSIP but they are not providing how to use that thing
Now my questions are :
1) How can I integrate SIP client to this ChatterBox example or How can I call to another number?
2) Can it is possible to user other that Microsoft Cloud server means can I use my own server to push call to my app?
3) In ChatterBox example there is a default incoming call. How can I call from another to my number / my app ?
Thank You.
ChatterBox is just a framework for what a SIP App could be, it shows you Background Process code and also Scheduling Tasks and Push notifications.
If you want to be able to make SIP calls, you need to download the src code of a sip library like PJSIP which works very well.
Just run the code and call pjsua methods, they encapsulate the functionality quite well.
I am writing a BT app on an android to connect to a lab device/hardware. At the present time I have a device on loan. However it is not possible for me to always have one while I am developing for it, (commuting, out of town, etc) Therefore I am creating an emulator for it and will run that emulator on my Windows desktop so that my Android client code can make connections to it.
The android code is built with .NET/xamarin and works fine connecting to the real device.
I am comfortable with C++ or C# on the desktop.
I have found this code http://www.codeproject.com/Articles/252882/Bluetooth-Server-Programming-on-Windows online to create and accept BT connections. it looks like a very good start for what I wish to do - which is build a state machine/emulator to mimic the real device. However I have been unable to connect my android device to it.
Note - the connection is a serial port connection. (the UUI coming from the android device is the "well known" serial port connection ("00001101-0000-1000-8000-00805F9B34FB")
I am not sure how to configure the windows 7 desktop and bluetooth services to allow this server/emulator program to accept connections.
I have paired the devices, but unable to connect.
How can I accept incoming Bluetooth serial connections in the C++ or C# code running on Win7 desktop?
If you want to do low level stuff like establish a connection via bluetooth through a C# app then you will need to access the bluetooth stack via its API. If your device is running the Microsofts Bluetooth Stack then you can look at 32feet.net's managed wrapper for Microsofts Bluetooth API. If you have the Widcomm stack then you will have to locate Widcomm's API for it.
To access the microsoft bluetooth stack, you can use the BthUtil.dll.
BthUtil.dll is an unmanaged dll which is part of the Microsoft Bluetooth stack. It's typically utilised for tasks such as turning the bluetooth radio on or off via a function called BthSetMode
(see MSDN for documentation - http://msdn2.microsoft.com/EN-US/library/aa456007.aspx)
You can check the following links:-
http://www.youtube.com/watch?v=Jn05CU3mxzo
Also, check the 32feet.Net
A Brief description of 32feet.Net
32feet.NET is a shared-source project to make personal area networking technologies such as Bluetooth, Infrared (IrDA) and more, easily accessible from .NET code.
Supports desktop, mobile or embedded systems.
32feet.NET is free for commercial or non-commercial use.
If you use the binaries you can just use the library as-is, if you make modifications to the source you need to include the 32feet.NET License.txt document and ensure the file headers are not modified/removed. The project currently consists of the following libraries:-
Bluetooth
IrDA
Object Exchange
Bluetooth support requires a device with either the Microsoft, Widcomm, BlueSoleil, or Stonestreet One Bluetopia Bluetooth stack. Requires .NET Compact Framework v3.5 or above and Windows CE.NET 4.2 or above, or .NET Framework v3.5 for desktop Windows XP, Vista, 7 and 8.
Link
http://32feet.codeplex.com/
Feature link for 32feet.Net
http://32feet.codeplex.com/wikipage?title=Feature%20support%20table&referringTitle=Documentation
I'd like to run an application on windows mobile via ActiveSync from PC. Is there any way to do it via C# or C++ ? Or a way to edit a registry key of windows mobile via ActiveSync?
To start an app you need to call CeCreateProcess. Registry access starts with CeRegOpenKeyEx (there are reads, writes, etc too). All of these are also wrapped in managed code in this open-source library.
I`m asking this question again as I got no answer for about a week now ...
I want to know how to write a C# desktop application that can connect to the mobile version of the same application (that I will create). The desktop application will be used as a backup/restore for the mobile application.
I want to know also how to write the mobile version (using C# if possible).
May i know, in what way you want to communicate with the mobile version of the application? Ideally the cross domain/application communication is possible using services(WCF/Webservices).
I hope the following link may be useful for you : Bluetooth in C#, Which stack, Which SDK?