WIndows Form Application with bluetooth communication - c#

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 ?

Related

developing UWP Remote dekstop viewer

I wants to develop a UWP remote desktop viewer application. I had already gone through many tutorials but those are all of winform application and I can't port them into uwp. So that desktop can be viewed from windows 10 mobile. I have zero knowledge regarding this so anyone can help me from where should I start and also if someone having UWP remote desktop code so that I can understand its working easily.
I am afraid you cannot develop such application easily in the Universal Windows Platform. Microsoft has its own Remote Desktop app, but it is definitely using some APIs which are not publicly available for the connection to remote computer.
To develop such app you would need to capture / record the screen on desktop as well as capture all input and relay the input from the remote device to the source.
You could create the desktop side of the app using Windows Forms / WPF and connect to it remotely from a phone, which would just act as a display and would capture and send the user input to the desktop counterpart.
There is also a small chance you could implement the desktop app in UWP with the help of Brokered Windows Runtime components, but that would be very tedious work.
Once again however, developing this is a major task, which is more suitable for a team of developers.

32feet library application doesn't work on Windows XP, why?

I've written an application using 32feet library. It works on Windows 7,8,10. I can find my device, connect to it, send and receive data, but the application doesn't work on Windows XP. It can't find any bluetooth devices. I need to get it working on XP.
What could be the reasons for that? Does somebody knows?

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

Categories

Resources