Framework for phone to desktop communication - c#

I'm developing a C# app on the desktop (Microsoft Surface like), and I would need to send data to phones (Iphone, Andriod, iPad, WP7 etc). The data transferring would pictures,text to and fro.
I'm aware of 32feet and Blueway, those are using bluetooth. I like to ask
is there a framework which would allow the app to connect to the phones to transfer data
is bluetooth the best connection method? Or are there alternatives

If you just want the app to send to any phones nearby then Bluetooth will probably be the simplest option.
If you need to have some loginc and back and forth communication this will depend on the phones you wish to communicate with. For instance, access to the Bluetooth stack isn't currently available to 3rd party apps on WP7.

Related

Transferring files from windows ce to desktop

Is there a way to connect a Windows CE 6.0 device to a Windows 7 desktop PC without using activesync
There's no way to just connect the two and have them communicate without some form of driver or application being written. ActiveSync/WMDC is what Microsoft shipped "out of the box". If you want to do what it does, then you have to replace it with another app or protocol, and it generally requires you to do both sides - a device app and a PC app.
What that would look like depends on how you intend to connect. If you want to use USB, then you can likely use the CE RNDIS driver, so that the device shows up as an NDIS device, then use the desktop APIs to send network traffic to and from the device. Of course you'll have to put an app or service on the device that knows how to take commands and do something with them.

Is it possible to connect a Win RT app with PC via Bluetooth?

I am trying to find a sample that connect a Win RT app with other Bluetooth devices for example a PC. It is a basic thing but seems like it is not supported in WinRT.
In one thread a Microsoft employee says
.... Other than the call control sample, there is no Bluetooth stack
available for Store apps...
After reading other similar threads it seems to me that this is not possible at the moment. Am I right or is there any way to connect a Win RT app with some other device like a desktop app on PC via Bluetooth?
After reading many questions and articles (some links are below) on different forums I have reached to conclusion that communication between a Metro Style App and a PC is not possible via Bluetooth. One option is to go with is WiFi.
Some useful links which supports this conclusion are below
http://social.msdn.microsoft.com/Forums/en-US/tailoringappsfordevices/thread/6634240b-c042-4e76-a3b0-1f1103ea0ddf
http://social.msdn.microsoft.com/Forums/en-US/tailoringappsfordevices/thread/0cb2a6c1-d1f1-4872-aa32-709acd90b94d
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/9db327e1-afe4-443b-8856-343492645083/
http://social.msdn.microsoft.com/Forums/en-US/tailoringappsfordevices/thread/172061f4-56ff-4fd2-987d-687d4703506d
The WinRT 8.1 Bluetooth stack provides the requisite services for ad hoc Bluetooth communications with similarly capable devices. More specifically, peer discovery and peer to peer communications is supported.

Possibilities communication beetwen several Windows 8 RT devices (running same app) C# WI-FI

I want to develop an app, which will be running on tablets with Windows 8 (RT). One tablet with this app should be a "master" tablet and this tablet will communicate with other tablets "slave" (running same app). Master tablet should send data to slaves tablets (slave tablet display this received data) and slaves tablets will send data to master. Master collect this data and create some graph etc... I hope you understand. (resume: several same W8 RT app communication with each other)
Can tablets with W8 RT (running same app) communication WI-FI Direct? What´s possibilities are in C#?
Thx for every answer.
Windows 8 includes a capability to help you establish connections between copies of your app running on different devices. That capability is called PeerFinder.
Currently PeerFinder can find other devices using NFC (tap the two devices together) or using WiFi if both devices support Wifi Direct. After the initial handshake, both devices communicate using sockets.
The Proximity Sample shows basic use of PeerFinder:
http://code.msdn.microsoft.com/windowsapps/Proximity-Sample-88129731
PixPresenter is a sample app that uses PeerFinder and exchanges images between devices:
http://code.msdn.microsoft.com/windowsapps/PixPresenter-Code-sharing-39ed631f
PeerFinder.SupportedDiscoveryTypes tells you what methods are currently available for discovering other devices:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.proximity.peerfinder.supporteddiscoverytypes
Hope that helps.
Dev support, design support and more awesome goodness on the way: http://bit.ly/winappsupport
If it's local network, you can use raw TCP communications and use UDP discovery to identify the master.
If it's a more distributed setup like the internet or separated network areas, I'd recommend you have a look at Microsoft Azure Queue Storage services explained here. This will allow a distributed and redundant master-slave model.
As a complement, if anytime you need to emulate NFC you can use a specific sample driver :
Windows 8.1 : How to use Near-Field Proximity API without NFC hardware
Hope it helps.
Stéphanie
Also, here you will find a WinRT lib that you can use to help you tranfer data/files between Windows 8 peers running the same application, using Wifi-Direct :
http://blogs.msdn.com/b/stephe/archive/2013/12/11/win8-1-transfering-a-file-between-2-peers-using-wifi-direct-and-proximity-api.aspx
Best regards

Sync between two windows phone devices

I have a project wherein i have to create a windows mobile app which synchronize files between two windows phone, provided that the connectivity between two phone should be through WiFi.
Being new to this app development field , i have no idea on where to start and where to look. Is there any sample application present to sync data between two phones without involving any database. And what API should i use. i referred to some tutorials on this website.
This won't be possible without a server between both phones. Microsoft is very restrictive and won't let you access the WiFi connection. Actually you would have to use one of the phones as a WiFi hotspot and the other one as client and this is definitely not possible with an WP app.
I would recommend to write a Windows Service (have a look at WCF) which both phones connect to. This service would have to do all the work which would be:
Wait for phone requests to work with them
Handle the request when a phone wants to synchronize data
Let the second phone know that there are new data to receive
Transfer data to the second phone
Actually there will be more requirements for such a service (e.g. security) you will have to deal with.
Yet, there is a solution because Rudy Huyn connected several Windows phone using the connection Wifi without server http://www.youtube.com/watch?feature=player_embedded&v=rl0VHkoOHTA
But I don't know how..

way of communicating between Windows phone app and desktop app

I want my windows phone app to communicate with a desktop app (in Windows), basically i want to send a picture which is captured in the phone to be send to the desktop app and get back the feedback from the desktop app.
Whats the most elegant and modular and simple way of doing this?
If you can force your user to connect via wifi such that he is on the same local network as the desktop, you listen for the phone's connection on a higher port and transfer the data to/from it over TCP directly.
Otherwise, the best way to do this at present would be via the internet, using your server to synchronize files and messages between the two devices.

Categories

Resources